| |
BGonline.org Forums
Dice rolling apps
Posted By: eXtreme Gammon In Response To: Dice rolling apps (Tom Keith)
Date: Thursday, 9 December 2010, at 6:16 p.m.
The process can be done pretty easily and securly:
each player pick a large prime number (p1 and p2) the RNG is initialiazed with a seed s=p1*p2 once the game is finsihed the seed s if made avaliable to both player each player can divide the s by their number and verify the result is a integer This way the other player does not need to know the other's number (picking large prime make it extremely difficult to get both number without knowing one of them)
If people are okay to change their number each time, then there is no reason to secrecy and each can pick any number.
As for RNG, 99% of them will pass test sufficient for pratical backgammon games. Mersenne Twister ( http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html ) is a well known and easy one to implement (for XG owner you can find its source in the dice library folder c:\program file\extreme gammon\dice dll\MT19937.c)
| |
BGonline.org Forums is maintained by Stick with WebBBS 5.12.