Information on calculator Random Number Generators from PPC Journal articles
|
11-16-2016, 06:20 PM
(This post was last modified: 11-16-2016 06:40 PM by Dieter.)
Post: #47
|
|||
|
|||
RE: Information on calculator Random Number Generators from PPC Journal articles
(11-16-2016 01:53 PM)Dieter Wrote: Any idea what would cause strange results like these? I did another test. This time starting with x0 = 0,45642414. The implementation mentioned above generates the following sequence: 0,350905 0,42875 0,62931 0,93117 0,02565 0,42874 0,643333 ... A sample of 1000 consecutive random numbers showed a period length of 77. The 78th number is 0,350905 again, and the above sequence starts over. In fact the 78th x-value is 0,45642414 again, the original seed. Thus in 1000 numbers every value occured 13 times. OK, except one since 13x77=1001. This exeption is the seed itself, i.e. Rn=0, 42414. And in fact there is not one single Rn in [0,7; 0,8[. In the sorted list of these 1000 random numbers 0,69777 is directly followed by 0,84506. I have also checked this with an HP41 implementation: Code: RCL 00 Starting with 0,45642414 in R00 the program yielded exactly the same results, and after 77 numbers the sequence restarted, with 0,45642414 in R00 again. For the record, here is the complete list of the first 80 Rn: Code: 1. 0,350905 Hm, hmm, hmmm... Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)