Random number generator in HP 30S
02-19-2017, 09:32 PM
Post: #4
 Joe Horn Senior Member Posts: 1,822 Joined: Dec 2013
RE: Random number generator in HP 30S
Thanks, Bob. It would therefore seem that nobody knows what the 30S's pseudo-random number generator is. However, is there a way (without being John Nash) to take the integer sequence generated by RANDM*2^16 and find that sequence's generator?

Meanwhile, it should probably be noted somewhere that the RANDM function in the HP 30S should NOT be used for anything that requires a large cycle. RANDM only outputs 65536 different values. Therefore using it, for example, to pick a winning sweepstakes ticket number between 1 and 1 million would be grossly unfair, since over 93% of those ticket numbers would have zero probability of being picked.

Strange that RANDM*65536 generates integers that alternate between even and odd, whereas RANDMI(0,65535) does not.

<0|ΙΈ|0>
-Joe-
 « Next Oldest | Next Newest »

 Messages In This Thread Random number generator in HP 30S - Joe Horn - 02-19-2017, 08:02 AM RE: Random number generator in HP 30S - Gerald H - 02-19-2017, 01:03 PM RE: Random number generator in HP 30S - rprosperi - 02-19-2017, 03:06 PM RE: Random number generator in HP 30S - Joe Horn - 02-19-2017 09:32 PM RE: Random number generator in HP 30S - Paul Dale - 02-19-2017, 10:22 PM RE: Random number generator in HP 30S - ttw - 02-20-2017, 09:14 PM RE: Random number generator in HP 30S - Joe Horn - 02-20-2017, 10:23 PM

User(s) browsing this thread: 1 Guest(s)