4 ms·
The most popular kind of PRNG is the linear congruential generator. Really? I was under the impression that we were all using the Mersenne twister these days.
by kibwen 15y ago
The most popular kind of PRNG is the linear congruential generator.
Really? I was under the impression that we were all using the Mersenne twister these days.
- SeanLuke 15y agoNot only is LCG the most popular, it is +by far+ the most popular. rand() and Java.util.Random are both LCG. And it can be spectacularly bad. See http://www.alife.co.uk/nonrandom/ http://www.alife.co.uk/nonrandom/
- lucian1900 15y agoMaybe the most widely known broken PRNG :)