News for hackers. Stuff that matters.
Re:The definitive guide to “modulo bias” and how to avoid it... by the_af on Thursday September 15, 2022 @05:54PM (#32858956)
Well, the person who claims it's terrible is the author of the very thorough article we are discussing.

> You should probably avoid java.util.Random if you care about the quality of the randomness it produces.

That's pretty much the definition of "bad" ;) If you don't care about quality, I assume you could use a string of numbers without any randomness at all.

As for games, it depends. I'm sure one could make a guess it's bad for some kinds of non-betting games and simulations as well.

There are no comments on this comment yet.