An RNG that runs in your brain
Humans are notoriously bad at coming up with random numbers. I wanted to be able to quickly generate “random enough” numbers. I’m not looking for anything that great, I just want to be able to come up with the random digits in half a minute. Some looking around brought me to an old usenet post by George Marsaglia:
Choose a 2-digit number, say 23, your “seed”.
Form a new 2-digit number:
the 10’s digit plus 6 times the units digit.
The example sequence is
23 –> 20 –> 02 –> 12 –> 13 –> 19 –> 55 –> ...
Read more at hillelwayne.com