Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upModulo bias in Random #225
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
Follow along in #724 |
evancz
closed this
Sep 22, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pseudonom commentedApr 23, 2015
When restricting the random number to a range, modulo bias is introduced. See https://zuttobenkyou.wordpress.com/2012/10/18/generating-random-numbers-without-modulo-bias/.