public final class ModifiedLaggedFibonacci extends java.lang.Object implements RandomGenerator
Constructor and Description |
---|
ModifiedLaggedFibonacci()
Constructs a modified additive lagged Fibonacci random number generator with
the default (zero) seed.
|
ModifiedLaggedFibonacci(int seed)
Constructs a modified 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 ModifiedLaggedFibonacci()
public ModifiedLaggedFibonacci(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