public class IndependentRNGFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IndependentRNGFactory.FactoryNotInitializedException |
static class |
IndependentRNGFactory.UseIndependentRNGFactoryException |
static class |
IndependentRNGFactory.WarningRNG
Wraps the SystemRNG, prints warnings
|
| Constructor and Description |
|---|
IndependentRNGFactory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
disableSystemRNG()
Use this method to mark the SystemRNG of the RandomNumberGenerator as
invalid.
|
static RandomNumberGenerator |
getNewRNG(java.lang.String seedString)
Instantiates a new RandomNumberGenerator.
|
static void |
initialize(int seedIndex,
RandomNumberGeneratorFactory rngFactory)
Use this method to set the seed index, which should be given on the
command line.
|
static void |
wrapSystemRNGWithWarnings()
Use this method to mark the SystemRNG of the RandomNumberGenerator as
deprecated.
|
public static void disableSystemRNG()
public static void wrapSystemRNGWithWarnings()
public static void initialize(int seedIndex,
RandomNumberGeneratorFactory rngFactory)
seedIndex - seed index - must be >= 0public static RandomNumberGenerator getNewRNG(java.lang.String seedString)
seedString - use this to create a seed depending on the module or class which
uses this RNG