|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--eduni.distributions.SeedGenerator
A SeedGenerator is a DiscreteGenerator which produces well-spaced seeds
according to its spacing attribute. It relies on a RandomGenerator
Constructor Summary | |
SeedGenerator()
|
|
SeedGenerator(long seed,
int spacing)
|
Method Summary | |
long |
getSeed()
Get the random number generator's seed. |
void |
reseed()
Get another seed well-spaced (from the default SeedGenerator ) |
long |
sample()
|
void |
setSeed(long seed)
Set the random number generator's seed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SeedGenerator()
public SeedGenerator(long seed, int spacing)
Method Detail |
public void setSeed(long seed)
Seedable
setSeed
in interface Seedable
seed
- The new seed for the generatorpublic long getSeed()
Seedable
getSeed
in interface Seedable
public void reseed()
Seedable
SeedGenerator
)
reseed
in interface Seedable
public long sample()
sample
in interface DiscreteGenerator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |