News for hackers. Stuff that matters.
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.
Re:Efficiently Generating a Number in a Range by dagenix on Wednesday July 25, 2018 @12:58PM (#17610786)
I don't disagree - I just very much hate the phrase "over engineered" as I think it never adds anything to a discussion.