Java org.apache.commons.math3.random RandomGenerator fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.math3.random RandomGenerator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.math3.random RandomGenerator.

The text is from its open source code.

Implementation

org.apache.commons.math3.random.RandomGenerator has the following implementations.
Click this link to see all its implementation.

Constructor

Method

ClassgetClass()
Returns the runtime class of this Object .
booleannextBoolean()
Returns the next pseudorandom, uniformly distributed boolean value from this random number generator's sequence.
voidnextBytes(byte[] bytes)
Generates random bytes and places them into a user-supplied byte array.
doublenextDouble()
Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.
floatnextFloat()
Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from this random number generator's sequence.
doublenextGaussian()
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.
intnextInt()
Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.
intnextInt(int n)
Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.
longnextLong()
Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence.
voidsetSeed(int seed)
Sets the seed of the underlying random number generator using an int seed.
voidsetSeed(int[] seed)
Sets the seed of the underlying random number generator using an int array seed.
voidsetSeed(long seed)
Sets the seed of the underlying random number generator using a long seed.