public class UniformIntGen extends RandomVariateGenInt
| Constructor and Description |
|---|
UniformIntGen(RandomStream s,
int i,
int j)
Creates a uniform random variate generator over the integers
in the closed interval [i, j], using stream s.
|
UniformIntGen(RandomStream s,
UniformIntDist dist)
Creates a new generator for the distribution dist, using
stream s.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getI()
Returns the parameter i.
|
int |
getJ()
Returns the parameter j.
|
static int |
nextInt(RandomStream s,
int i,
int j)
Generates a new uniform random variate over the interval
[i, j], using stream s, by inversion.
|
getDistribution, nextArrayOfInt, nextIntgetStream, nextArrayOfDouble, nextDouble, setStreampublic UniformIntGen(RandomStream s, int i, int j)
public UniformIntGen(RandomStream s, UniformIntDist dist)
public static int nextInt(RandomStream s, int i, int j)
public int getI()
public int getJ()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.