Author

Topic: Dice Game, question about generating roll number? (Read 931 times)

newbie
Activity: 28
Merit: 0
Just generate the result before hand and had the user a salt+a hash.

Doesn't have to be true random as long as the results aren't changed after the fact.

You should test the probability of a number being generated to verify there are no biases (say, simulate rolling the dice 10k times, verify that each number is roughly even).

Thanks.
legendary
Activity: 882
Merit: 1000
Just generate the result before hand and had the user a salt+a hash.

Doesn't have to be true random as long as the results aren't changed after the fact.

You should test the probability of a number being generated to verify there are no biases (say, simulate rolling the dice 10k times, verify that each number is roughly even).
newbie
Activity: 28
Merit: 0
I noticed my thoughtfulness later but did the moderator had to move this topic to Off-Topic?

I request to @grue to move this to SUITABLE category.

And, thanks.
legendary
Activity: 3472
Merit: 4801
I really wonder why this topic moved to Off-Topic from Development?
Interesting.

Did you even take 2 seconds to look at the description of the "Development & Technical Discussion" sub-forum?

Quote
Technical discussion about Satoshi's Bitcoin client and the Bitcoin network in general. No third-party sites/clients, bug reports that do not require much discussion (use github), or support requests.

Please explain how your post about the game you wanted to create has anything to do with "Technical discussion about Satoshi's Bitcoin client" or "Technical discussion about the Bitcoin network"?

Please explain how your question is not about a "third-party site"?

newbie
Activity: 28
Merit: 0
I really wonder why this topic moved to Off-Topic from Development?
Interesting.
newbie
Activity: 28
Merit: 0
Fixed, working great.
Jump to: