|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omegahat.Simulation.RandomGenerators.DefaultPRNGFactory
a factory class to create PRNG's from PRNGStates.
Constructor Summary | |
DefaultPRNGFactory()
|
Method Summary | |
PRNG |
instantiate(PRNGState state)
Instantiate a PRNG of the correct class |
static void |
main(java.lang.String[] argv)
Test PRNGFactory class by creating a CollingsPRNGState, instantiating it using the Factory, and then generating 10 random integers with the result. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public DefaultPRNGFactory()
Method Detail |
public PRNG instantiate(PRNGState state) throws java.lang.Exception
instantiate
in interface PRNGFactory
state
- State information used to create the PRNGpublic static void main(java.lang.String[] argv) throws java.lang.Exception
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |