New Appoach for Random Number Generation???
|
03-21-2019, 07:17 PM
Post: #5
|
|||
|
|||
RE: New Appoach for Random Number Generation???
With seed = 0.123, I created million "random" bytes = int(256*(x = rand34(x)))
Test the bytes with ent.exe, it failed the Chi-Square test. Quote: If the percentage is greater than 99% or less than 1%, the sequence is almost certainly not random. Entropy = 7.999695 bits per byte. Optimum compression would reduce the size of this 1000000 byte file by 0 percent. Chi square distribution for 1000000 samples is 422.05, and randomly would exceed this value less than 0.01 percent of the times. Arithmetic mean value of data bytes is 127.3923 (127.5 = random). Monte Carlo value for Pi is 3.140892564 (error 0.02 percent). Serial correlation coefficient is 0.000456 (totally uncorrelated = 0.0). BTW, rand34() *crashed* with seed of 0.0, due to log10() domain error. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
New Appoach for Random Number Generation??? - Namir - 03-21-2019, 12:06 PM
RE: New Appoach for Random Number Generation??? - ttw - 03-21-2019, 12:47 PM
RE: New Appoach for Random Number Generation??? - Albert Chan - 03-21-2019, 01:53 PM
RE: New Appoach for Random Number Generation??? - Namir - 03-21-2019, 03:14 PM
RE: New Appoach for Random Number Generation??? - Albert Chan - 03-21-2019 07:17 PM
RE: New Appoach for Random Number Generation??? - Namir - 03-21-2019, 11:52 PM
RE: New Appoach for Random Number Generation??? - Namir - 03-21-2019, 07:51 PM
RE: New Appoach for Random Number Generation??? - ttw - 03-23-2019, 02:34 AM
|
User(s) browsing this thread: 4 Guest(s)