• spittingimage@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    2 days ago

    The George Marsaglia mental pseudorandom number generator method:

    • Think of a 2-digit ‘seed’ number.
    • Multiply the second digit by 6 and add it to the first number.
    • Repeat once.
    • Use the right-most digit of the new number as your random number.

    If you chart the results using a spreadsheet you can see a weak pattern emerge but it’s not easily human-predictable, which is what makes it useful to me.

    • cheese_greater@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 day ago

      Is there anything about how they originated upon this method?

      Reminds me of 2FA or OTP generated codes a lil bit

      Lastly, this is what I’m talking about!!! Right oN

      • spittingimage@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        1 day ago

        Is there anything about how they originated upon this method?

        I haven’t seen anything about this method specifically, but Marsaglia was a mathematician who studied randomness his entire career, so I assume it came about from that.