| |
BGonline.org Forums
Verifying Randomness
Posted By: eXtreme Gammon In Response To: Verifying Randomness (Gregg Cattanach)
Date: Thursday, 12 August 2010, at 4:11 p.m.
For me, there is something as "Random enough"
Imagine you have a RNG that is perfect giving a number between 1 and 1^32 and implement a dice using dice= RNG / 6 (where / is the division without rest)
Because the 2^32 is not multiple of 6 you will have one more instance of 1,2,3,4 than of 5 or 6.
Now, it will pass most Randomcy test. However (if i did not messed up my calculations) after 2800*2^32 (1.3*10^13) tests the extra number of 1,2,3,4 should be outside the 95% confidence interval.
Is that system random? no. Is it good enough? yes for backgammon purposes (at least for me).
Note: an fix for that problem is to ignore any RNG output >= 2^32-4 and get the next output of the RNG.
| |
BGonline.org Forums is maintained by Stick with WebBBS 5.12.