News for hackers. Stuff that matters.
Re:Predicting the next Math.random() in Java by xxs on Monday September 01, 2014 @03:45PM (#8254403)
Math.random() should be used only for tests. That's it. Performance sucks as it's shared. ThreadLocalRandom is a lot better if you need fast but not-quality random.

And there is SecureRandom for security concerns.

Last fun fact Math.random() and a Monte Carlo test introduced "CAS in Java" and all that followed with JSR 166.

There are no comments on this comment yet.