|
BGonline.org Forums
How the Dice Generator works
Posted By: Boop In Response To: BG Buddy Version 1.0.8 released! (Boop)
Date: Wednesday, 10 May 2017, at 11:27 a.m.
I discussed how the Mersenne Twister Dice Generator works and showed the code here: http://www.bgonline.org/forums/webbbs_config.pl?noframes;read=200172
(You still have the option to use the arc4Random_uniform(6) dice generator from previous versions of BG Buddy. It also produces equal weighted dice rolls that are indestiguishable from truly random numbers. My guarantee: No one can predict or obtain the sequence of numbers in advance, not even me.)
Regarding the Mersenne Twister generator here is a typical email which can be sent after the completion of a match.
To:James Knipe
Subject: Dice Rolls file for: Raj Jansari vs Gaz Owen 08/05/2017
content:
Dice Generator: Mersenne Twister Seed: 34554327 Offset: 2156265
Below are 2 dice files:
1) Raj Jansari vs Gaz Owen 08/05/2017 Match Mersenne Twister.txt
This file contains the rolls that BG Buddy received from the dice generator as the players rolled the dice in the match.
2) Raj Jansari vs Gaz Owen 08/05/2017 Mersenne Twister Regenerated.txt
A regenerated Mersenne Twister dice rolls file created just now using the above seed and offset. You can compare these 2 files to see that they contain the same list of rolls which will confirm that BG Buddy did not manipulated the dice in any way. As further confirmation any programmer can use the Mersenne Twister algorithm to generate a list of numbers between 1 and 6 using the above seed. Once generated, iterate through to the above offset number to find the first dice roll.
|
BGonline.org Forums is maintained by Stick with WebBBS 5.12.