|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.grogra.blocks.arrangeBlock.SeedGenerator
public class 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 long getSeed()
Seedable
getSeed in interface Seedablepublic void reseed()
SeedableSeedGenerator)
reseed in interface Seedablepublic long sample()
sample in interface DiscreteGeneratorpublic void setSeed(long seed)
Seedable
setSeed in interface Seedableseed - The new seed for the generator
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||