On Jan 17, 2008 3:55 AM, Thomas Hruska <[EMAIL PROTECTED]> wrote:
> onecrazeemom wrote:
> > I finally completed the dice roll program. Now, what do I do to make
> > the rolls more random? They seem to come up with doubles quite often.
[...]
> Probably what you are "experiencing" is the side effect of using the
> modulus of a random number with a number not evenly divisible by the
> maximum range of the random number generator.

Or it could simply be apophenia :)

You do get doubles in real life. One in every 6 rolls if I remember my
probability calcs correctly. (First die is irrelevant, second has a
one in 6 chance of matching the first.)


-- 
PJH

http://shabbleland.myminicity.com

Reply via email to