|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.newisys.random.MersenneTwisterFactory
public final class MersenneTwisterFactory
A factory implementation for the Mersenne Twister pseudorandom number generator.
| Field Summary | |
|---|---|
static MersenneTwisterFactory |
INSTANCE
A singleton instance of MersenneTwisterFactory. |
| Constructor Summary | |
|---|---|
MersenneTwisterFactory()
|
|
| Method Summary | |
|---|---|
PRNG |
newInstance()
Creates a new pseudorandom number generator with an arbitrarily chosen seed. |
PRNG |
newInstance(long seed)
Creates a new pseudorandom number generator with the given seed. |
PRNG |
newInstance(PRNG seedSource)
Creates a new pseudorandom number generator with a seed generated using the given generator. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final MersenneTwisterFactory INSTANCE
| Constructor Detail |
|---|
public MersenneTwisterFactory()
| Method Detail |
|---|
public PRNG newInstance()
PRNGFactory
newInstance in interface PRNGFactorypublic PRNG newInstance(long seed)
PRNGFactory
newInstance in interface PRNGFactoryseed - the value used to seed the new generator
public PRNG newInstance(PRNG seedSource)
PRNGFactory
newInstance in interface PRNGFactoryseedSource - the source of random data used to seed the new
generator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||