RNDU & RAND for HP17b & it's offsprings - Random Number Generator Message #10 Posted by Peter A. Gebhardt on 3 Dec 2009, 4:11 a.m., in response to message #1 by Peter A. Gebhardt
With a little help from my friends (from this forum) ... :-)
(Example) Pseudorandom Generator for 17b
Uniform Distribution with Seed: RNDU = FP(9821*G(RNDU)+.211327) *) **) ***)
"True" Distribution w/o Seed: RAND = FP(9821*G(RAND)*CTIME+.211327)
Other approaches can be found by looking at
http://en.wikipedia.org/wiki/Random_number_generation
Best regards,
Peter A. Gebhardt
PS(2009, Dec 4th 23:49 MEZ): Or look here for indepth research on potentially useful algorithms
http://en.wikipedia.org/wiki/Linear_congruential_generator
*) Credit for using these values goes to A.C.Rodríguez and his posting here on 11 Aug 2007 conc. 35s seed (Just found it by scanning the Forums Archive PDFs)
http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv017.cgi?read=121217
**) and it's original Author Jean-Marc Baillard here:
http://www.hpmuseum.org/software/41/41ranjm.htm
***) And even Microsoft EXCEL did use it - claiming it's good up to a million "draws", but failing statistical tests:
http://support.microsoft.com/kb/86523
Edited: 8 Dec 2009, 5:08 p.m. after one or more responses were posted
|