public class RandomNumbersGenerator
extends MersenneTwister
Modifier and Type | Method and Description |
---|---|
static RandomNumbersGenerator |
getInstance() |
int |
nextInt(int n) |
int |
nextIntBi(int n,
double p) |
long |
nextLong(long n) |
long |
nextLongBi(long n,
double p) |
public static final RandomNumbersGenerator getInstance()
public long nextLong(long n)
public int nextInt(int n)
public int nextIntBi(int n, double p)
public long nextLongBi(long n, double p)