Example usage for Java org.apache.commons.math3.random RandomGenerator fields, constructors, methods, implement or subclass
The text is from its open source code.
Class> | getClass() Returns the runtime class of this Object . |
boolean | nextBoolean() Returns the next pseudorandom, uniformly distributed boolean value from this random number generator's sequence. |
void | nextBytes(byte[] bytes) Generates random bytes and places them into a user-supplied byte array. |
double | nextDouble() Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence. |
float | nextFloat() Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from this random number generator's sequence. |
double | 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. |
int | nextInt() Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence. |
int | nextInt(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. |
long | nextLong() Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence. |
void | setSeed(int seed) Sets the seed of the underlying random number generator using an int seed. |
void | setSeed(int[] seed) Sets the seed of the underlying random number generator using an int array seed. |
void | setSeed(long seed) Sets the seed of the underlying random number generator using a long seed. |