|
-
Mar 29th, 2007, 12:49 PM
#5
Re: Random numbers showing bias...help!
 Originally Posted by timeshifter
Drop the Timer off of that statement. It's unnecessary.
Also remember that randomality is a tricky beast, since the probability of me throwing a die twice, on the first set getting a 1 and a 6, on the second set getting two 3's, is identical. It is very difficult to determine if something is biased as it just may be how the random number generator picks the numbers.
Technically there are two ways to get a 1 and 6 and only one way to get two 3s, so you're twice as likely to get the 1 and 6. But that's neither here nor there.
Running this multiple times I consistently get 10 times as many 1s as 9s. That isn't random, even if I squint.
Anyone have any mathematical PRNG algorithms laying around? I lost my old C books which had several, and my google-fu is weak today.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|