How do i know if this is random enough?

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-04-14T21:31:18Z Indexed on 2010/04/14 21:43 UTC
Read the original article Hit count: 212

Filed under:
|
|

I wrote a program in java that rolls a die and records the total number of times each value 1-6 is rolled. I rolled 6 Million times. Here's the distribution:

#of 0's: 0
#of 1's: 1000068
#of 2's: 999375
#of 3's: 999525
#of 4's: 1001486
#of 5's: 1000059
#of 6's: 999487

(0 wasn't an option.)

Is this distribution consistant with random dice rolls? What objective statistical tests might confirm that the dice rolls are indeed random enough?

© Stack Overflow or respective owner

Related posts about language-agnostic

Related posts about math