


The Random class can generate a random number of any type such as int, long, float, double and boolean. Every run generates different random within the range. Math class of java.util package can be used to generate random number, this method returns double type random numbers in the range 0.0 (included) to 1.0 (not included). Random number can be generated using the below built-in ways provided by Java.Ħ.
