Generating Random Numbers without Modulo Bias

  1. http://stackoverflow.com/questions/10984974/why-do-people-say-there-is-modulo-bias-when-using-a-random-number-generator
  2. https://zuttobenkyou.wordpress.com/2012/10/18/generating-random-numbers-without-modulo-bias/
    The random numbers generated using modulo are biased. Check the above article.
    The correct way of implementation is also specified above.
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s