I'm building a new Bitcoin lottery.
The rule is very simple :
_ At the end of the round one user is selected randomly to win the pot.
The question : I want to make a fair randomization, like in other gambling websites.
Can someone give me clues about it ?
Thank's a lot !!
For something like that the built in psuedo-random number generator in your programming language should be fine. If you are using PHP just use $winner = rand(1,$numberOfEntries);
Or if you want to be provably fair, generate the random number in advance and publish a hash of it. You can then announce the winning number after the drawing and any user can compare the hashes.