How can I generate random numbers in Java?
In Java, generating a series of random number's is one those common task. You can be achieved it simply by using java.util.Random class.
You can generate random numbers in Java by using Math.random(). It generates random number's between 0.1 to 1.0. You can use the random class in package java.util to generate random number's in Java.
Hope it's informative...