Do you miss something on BrainKing.com and would you like to see it here? Post your request into this board! If there is a more specific board for the request, (i.e. game rule changes etc) then it should be posted and discussed on that specific board.
O čem je toďten plk: cryptographic random number generator
I request a random number generator based on a cryptographic hash function, for example SHA-1, using the ready-made PHP-function sha1().
Every game is assigned a secret key. The key is concatenated with the move number and input to the hash function. The dice rolls are determined from the hash.
The advantages: 1. this will create random numbers with very good statistical properties, practically as good as real random numbers. 2. Predicting the dice rolls is infeasible when the key is secret, even if the algorithm is published. 3. After the end of the game the key can be revealed, so that everyone (or at least programmers) can check if the dice have been rolled correctly. The players need no longer be sucpicious if the random number generator is bad or buggy.
(do skréše) Ťokni na špilošovo méno a pak na oddil Okončeny špile, pak na méno špila a nakonec na orčité špil, nad kerym tak možeš přeméšlet do aleluja. (Servant) (okázat šecke vechetávke)