Generate a new double
Generate a new float
Generate a new Gaussian (normally distributed) number
Generate a new Gaussian (normally distributed) number
This is based on Apache Commons Math's nextGaussian, which in turn is based on the Polar Method of Box, Muller, & Marsiglia as described in Knuth 3.4.1C
Generate a new integer (taking the 32 low order bits of the 64 bit state)
Generate a new long
Generate a new non-negative double
Generate a new non-negative double
Generate a new non-negative float
Generate a new non-negative float
Generate a new non-negative integer
Generate a new non-negative integer
Generate a new non-negative long
Generate a new non-negative long
The Random class provides methods to generate pseudo-random numbers via a plug-in PRNG, which is simply any function that generates a Long primitive.