|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--eduni.distributions.Generator
A generic Generator class which delegates its Seedable ability to a Distributions
object.
Field Summary | |
protected Distributions |
distrib
|
Method Summary | |
long |
getSeed()
Get the random number generator's seed. |
void |
reseed()
Get another seed well-spaced (from the default SeedGenerator ) |
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 |
Field Detail |
protected Distributions distrib
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |