title: Is Pythons random.randint statistically random?
body: <p>So I'm testing an  calculating the probabilities of certain dice rolls, for a game.
  The base case if that rolling one 10sided die.</p>
  
  <p>I did a million samples of this, and ended up with the following proportions:</p>
  
  <pre><code>Result
  0       0.000000000000000%
  1       10.038789961210000%
  2       10.043589956410000%
  3       9.994890005110000%
  4       10.025289974710000%
  5       9.948090051909950%
  6       9.965590034409970%
  7       9.990190009809990%
  8       9.985490014509990%
  9       9.980390019609980%
  10      10.027589972410000%
  </code></pre>
  
  <p>These should of course all be 10%.
  There is a standard deviation of  0.0323207% in these results.
  that, to me, seems rather high.
  Is it just coincidence?
  As I understand it the random module accesses proper pseudo-random numbers.
  Ie ones from a method that pass the statistical tests to be random.
  Or are these pseudo-pseudo-random number generators</p>
  
  <p>Should I be using cryptographic pseudo-random number generators?
  I'm fairly sure I don't need a <em>true</em> random number generator (see <a href="http://www.random.org/" rel="noreferrer">http://www.random.org/</a>, <a href="http://en.wikipedia.org/wiki/Hardware_random_number_generator" rel="noreferrer">http://en.wikipedia.org/wiki/Hardware_random_number_generator</a>).</p>
  
  <p>I am currently regenerating all my results with 1 billion samples, 
  (cos why not, I have a crunchy server at my disposal, and some sleep to do)</p>