3 ms·
In particular I’m thinking of JavaScript, but the same thing could be said about libc random. In at least a few puzzle games, the PRNG used has noticeable side
by jchw 7y ago
In particular I’m thinking of JavaScript, but the same thing could be said about libc random. In at least a few puzzle games, the PRNG used has noticeable side effects.
- xxs 7y agoThe 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.