Why do people say there is modulo bias when using a random number generator?
So rand() is a pseudo-random number generator which chooses a natural number between 0 and RAND_MAX, which is a constant defined in cstdlib (see this article for a general overview on rand()). Now what happens if you want to generate a random number between say 0 and 2? For the sake of explanation, let’s say … Read more