Re:Efficiently Generating a Number in a Range
by WorkLifeBalance on Wednesday July 25, 2018 @12:34PM
(#17610551)
The modulo approach is biased for all ranges which don't divide the full range but only a small amount of bias at small ranges rather than a large amount of bias at large ranges.
[ Parent
| on HN ]