Post Reply 
Information on calculator Random Number Generators from PPC Journal articles
11-08-2016, 07:21 PM
Post: #12
RE: Information on calculator Random Number Generators from PPC Journal articles
(11-08-2016 08:08 AM)Werner Wrote:  One more problem is that Valentin's RNG does not produce the same sequence on different machines. If you start out with seed=8, Free42 and a real 42S diverge after only 6 iterations.

Sure. That's 25 or 34 vs. 12 digits.
That's why the results will be different after the first run already: the 42s will return 0,366236105 while on Free42 it's 0,366236104655670143852...

(11-08-2016 08:08 AM)Werner Wrote:  Same for 41 vs. 42.

And here it's 10 vs. 12 digits.

(11-08-2016 08:08 AM)Werner Wrote:  (I use it mainly to populate random matrices, and so I'd like to have the same pseudo-random matrix on each machine)

Simple solution: round the result to, say, 6 places. In most cases the 10-digit calculators (41, 67, 97 etc.) will not return more than 7 or 8 digits anyway.

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Information on calculator Random Number Generators from PPC Journal articles - Dieter - 11-08-2016 07:21 PM



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