|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.math.num.random.RandomRNG
public class RandomRNG
A random number generator that delegates random number generation to a
Random
object.
Constructor Summary | |
---|---|
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(java.util.Random rng)
Create a random number generator using the given Random
delegate. |
Method Summary | |
---|---|
double |
nextRandomNumber()
Access the next random number from this generator. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 RandomRNG(java.util.Random rng)
Random
delegate.
rng
- the Random
delegate.Method Detail |
---|
public double nextRandomNumber()
nextRandomNumber
in interface RNG
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |