public final class LaggedFibonacci extends java.lang.Object implements RandomGenerator
Constructor and Description |
---|
LaggedFibonacci()
Constructs an additive lagged Fibonacci random number generator with the default (zero) seed.
|
LaggedFibonacci(int seed)
Constructs an additive lagged Fibonacci random number generator with the given seed.
|
Modifier and Type | Method and Description |
---|---|
int |
next()
Returns the next random integer number.
|
void |
seed(int seed)
Sets the seed of the random number generator.
|
public LaggedFibonacci()
public LaggedFibonacci(int seed)
seed
- the seed to be set.public void seed(int seed)
RandomGenerator
seed
in interface RandomGenerator
seed
- the seed to be set.public int next()
RandomGenerator
next
in interface RandomGenerator