Best two PRNG for calculators
|
08-30-2014, 11:57 AM
Post: #1
|
|||
|
|||
Best two PRNG for calculators
I have finished my little research (and literally days of non-stop number crunching) regarding good PRNG for calculators. The best two PRNGs I found are:
Best is: u(i) = Frac((u(i-1) + 1 / (phi + u(i-2))) * 997) and u(i) = Frac((u(i-1) + 1/phi) * 997) Where phi = 1.61803398875 (= the Golden Ratio) Using 997 does not come as a surprise for many. The following PRNG comes in an honorary mention: u(i) = Frac(u(i) * 4357) The problem with the last one (and with u(i) = Frac(u(i-1) * 997)) is that if u(i-1) is an integer, the PRNG generates a stream of zeros!!! Enjoy! Namir PS: A Cowboy's work is never done! |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Best two PRNG for calculators - Namir - 08-30-2014 11:57 AM
RE: Best two PRNG for calculators - Paul Dale - 08-30-2014, 11:38 PM
RE: Best two PRNG for calculators - Namir - 08-31-2014, 10:23 AM
RE: Best two PRNG for calculators - robert rozee - 08-31-2014, 07:07 AM
RE: Best two PRNG for calculators - Paul Dale - 09-01-2014, 05:51 AM
|
User(s) browsing this thread: 1 Guest(s)