Random Members

Random Members

Class Overview | This Package | All Packages

Constructors
Name Description
Random() Creates a new random number generator.
Random(long) Creates a new random number generator using a single long seed.

Methods
Name Description
next(int) Generates the next pseudorandom number.
nextBytes(byte[]) Generates a user specified number of random bytes.
nextDouble() Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.
nextFloat() Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from this random number generator's sequence.
nextGaussian() Returns the next pseudorandom, Gaussian ("normally") distributed double value with mean 0.0 and standard deviation 1.0 from this random number generator's sequence.
nextInt() Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.
nextLong() Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence.
setSeed(long) Sets the seed of this random number generator using a single long seed.