Comment Re:Real Men RNG(tm) (Score 1) 111
Let's use some simple numbers: You have random numbers from 0-100 as your source. Now, if you pick numbers from that in modulo 24, you will get uneven representation as 24 is not a whole multiple of the range. If we claim open ended, 24 means numbers 0-23 (24 numbers) over:
0-23 : 0-23
24-47 : 0-23
48-71 : 0-23
72-95 : 0-23
96-99 : 0-3
Thus your numbers 0-3 will be over-represented by a small fraction (enough to notice)
Now, this does not mean that the random number generator was good but even the best random number generator when used incorrectly will produce poor results.
Thus you would need to scale the whole range into your range - and usually it is done with numbers from 0.0-1.0 but you can do it over integer ranges too, albeit if two ranges are too close together in the integer ranges you can get beat frequencies.