Constructor and Description |
---|
RandomRNG()
Create a random number generator using a default
Random
delegate. |
RandomRNG(long seed)
Create a random number generator using a
Random
delegate initialized with the given seed. |
RandomRNG(Random rng)
Create a random number generator using the given
Random
delegate. |
Modifier and Type | Method and Description |
---|---|
double |
nextRandomNumber()
Access the next random number from this generator.
|
public RandomRNG()
Random
delegate.public RandomRNG(long seed)
Random
delegate initialized with the given seed.seed
- the seed used to initialize the Random
delegate.public double nextRandomNumber()
nextRandomNumber
in interface RNG
Jas4pp 1.5 © Java Analysis Studio for Particle Physics