Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 5
    Repeatedly getting the same values is inherent to randomness. If you never got the same values, that would be bias. If you roll a six sided die a thousand times and never get two sixes in a row, it's rigged. Commented Aug 17, 2017 at 12:53
  • Chekc this info, is for use of random and maybe be helpful to you: docs.python.org/3/library/random.html# Commented Aug 17, 2017 at 12:55
  • You should look into generating numbers and then performing a chi square test on them. Commented Aug 17, 2017 at 12:55
  • 1
    you have several random generators, normally random, uniformilly random, poisson random, depending on the distribution you want. For a simple implementation such as yours, you don't have to worry, the pseudorandom generator should be fine, also, the seed number will generate you the same results over and over, which is perfect when you want to share your work and show the same results. Commented Aug 17, 2017 at 12:56
  • 1
    "I feel like I notice that it has a sort of... bias?" Don't feel. Test! Humans are very good at perceiving patterns when they don't actually exist. Commented Aug 17, 2017 at 13:52