Data source: http://rosettacode.org/wiki/Unbias_a_random_generator
