News for hackers. Stuff that matters.
Re:The definitive guide to “modulo bias” and how to avoid it... by astrobe_ on Thursday September 15, 2022 @01:08PM (#32855151)
I remember very old versions of man random [1] warning against that sort of thing and recommending to pick the high (or low) bits of the random value. Probably the piece of advice was not correct.
Re:The definitive guide to “modulo bias” and how to avoid it... by morelisp on Thursday September 15, 2022 @03:11PM (#32857077)
Picking different bits doesn't solve modulo bias.

This is more likely a memory of the warning concerning the low quality of the randomness in the low bits (e.g. in LCGs where it always alternates in the lowest bit), or the fact the high bits of rand(3) were often zero due to a small RAND_MAX.