I have seen this question asked a lot but never seen a true concrete answer to it. So I am going to post one here which will hopefully help people understand why exactly there is “modulo bias” when using a random number generator, like rand() in C++.

10 Answers
10

Leave a Reply

Your email address will not be published. Required fields are marked *