public class UniformRng extends java.lang.Object implements RandomLongGenerator
| Modifier and Type | Class and Description |
|---|---|
static class |
UniformRng.Method
the pseudo uniform random number generators available
|
| Constructor and Description |
|---|
UniformRng()
Construct a pseudo uniform random number generator.
|
UniformRng(UniformRng.Method method)
Construct a pseudo uniform random number generator.
|
| Modifier and Type | Method and Description |
|---|---|
double |
nextDouble()
Get the next random
double. |
long |
nextLong()
Get the next random
long. |
void |
seed(long... seeds)
Seed the random number generator to produce repeatable sequences.
|
public UniformRng(UniformRng.Method method)
method - the uniform random number generation algorithm to usepublic UniformRng()
public void seed(long... seeds)
RandomNumberGeneratorseed in interface RandomNumberGeneratorseeds - the seedspublic double nextDouble()
RandomNumberGeneratordouble.nextDouble in interface RandomNumberGeneratorpublic long nextLong()
RandomLongGeneratorlong.nextLong in interface RandomLongGeneratorlong