Hacker News new | ask | show | jobs
by fanf2 464 days ago
Lemire’s algorithm rejects the fewest possible samples from the random number generator, so it’s generally the fastest. The multiplication costs very little compared to the RNG.