Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For a Lehmer PRNG where <$>p=59</$> & <$>m=6</$>, each iteration is a simple matter of...
- multiplying the ones digit by 6 and adding that to the tens digit; the random digit is now the final number's ones digit <!-- http://blog.yunwilliamyu.net/2011/08/14/mindhack-mental-math-pseudo-random-number-generators/ -->
- For my Lehmer mental PRNG,, a sequence starting from 17 would go: 43,...
- 22, 14, 25, 32, 15, 31, 09, 54, 29,..., and taking just the unit's digit, that yields: 3, 2, 4, 5, 2, 5, 1, 9, 4, 9 <!-- http://blog.yunwilliamyu.net/2011/08/14/mindhack-mental-math-pseudo-random-number-generators/ -->
- For my Lehmer mental PRNG, a sequence starting from 13 would go: 19,...
- 46, 40, 04, 24, 26... which yields: 9, 6, 0, 4, 4, 6 <!-- http://blog.yunwilliamyu.net/2011/08/14/mindhack-mental-math-pseudo-random-number-generators/ -->
- For my Lehmer mental PRNG, a sequence starting from 3 would go: 18,...
- 41, 10, 07, 42, 16... which yields 8, 1, 0, 7, 2, 6 <!-- http://blog.yunwilliamyu.net/2011/08/14/mindhack-mental-math-pseudo-random-number-generators/ -->
- For my Lehmer mental PRNG, a sequence starting from 11 would go: 07,...
- 42, 14, 25, 32, 15, 31... which yields 7, 2, 4, 5, 2, 5, 1 <!-- http://blog.yunwilliamyu.net/2011/08/14/mindhack-mental-math-pseudo-random-number-generators/ -->
- For my Lehmer mental PRNG, continue this sequence: 19,...
- 54, 29, 56, 41, 10, 01, 06, 36, 39... which yields 4, 9, 6, 1, 0, 1, 6, 6, 9 <!-- http://blog.yunwilliamyu.net/2011/08/14/mindhack-mental-math-pseudo-random-number-generators/ -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement