SHARE
TWEET

mental PRNG flaschards

a guest Sep 26th, 2012 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. For a Lehmer PRNG where <$>p=59</$> & <$>m=6</$>, each iteration is a simple matter of...
  2. 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/ -->
  3.  
  4. For my Lehmer mental PRNG,, a sequence starting from 17 would go: 43,...
  5. 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/ -->
  6.  
  7. For my Lehmer mental PRNG, a sequence starting from 13 would go: 19,...
  8. 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/ -->
  9.  
  10. For my Lehmer mental PRNG, a sequence starting from 3 would go: 18,...
  11. 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/ -->
  12.  
  13. For my Lehmer mental PRNG, a sequence starting from 11 would go: 07,...
  14. 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/ -->
  15.  
  16. For my Lehmer mental PRNG, continue this sequence: 19,...
  17. 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/ -->
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top