Tag Archives: ThreadLocalRandom

How to generate Random number in Java

If you want to generate random number in Java don’t use : It was proved that this class does not generate really random number. The solution is to use the ThreadLocalRandom class. This is an example :   You can also use it to querying for  a number in an interval like this :  … Read More »