public final class JavaRandomGenerator extends java.lang.Object implements RandomGenerator
Modifier and Type | Field and Description |
---|---|
private java.util.Random |
rand |
Constructor and Description |
---|
JavaRandomGenerator() |
JavaRandomGenerator(long seed) |
Modifier and Type | Method and Description |
---|---|
double |
nextDouble() |
int |
nextInt() |
int |
nextInt(int bound) |
public JavaRandomGenerator()
public JavaRandomGenerator(long seed)
public int nextInt()
nextInt
in interface IntRandomGenerator
public int nextInt(int bound)
nextInt
in interface IntRandomGenerator
public double nextDouble()
nextDouble
in interface DoubleRandomGenerator