2 ms·
The main issue would be naively using mod to obtain a number in range of (0-n].
by xxs 7y ago
The main issue would be naively using mod to obtain a number in range of (0-n].
- jchw 7y agoI understand the issue with modulo bias, but there's plenty of techniques for dealing with that issue. (Not to say that people always do, even in real-world code, but oh well.)
- rom1v 7y agoTBH, I think this is acceptable for a playlist random order, even if it's not perfectly evenly distributed.