Random number library#
CMS supports four different pseudo-random number generators (PRNG) that can be specified in the configuration file.
Parameter |
Data type |
Default |
Description |
---|---|---|---|
RNG |
enum |
AESCOUNTER. If the hardware does not support this, falls back to PSEUDODES. |
The pseudo-random number generator to use in this simulation. Supported values are:
|
rng_seed |
integer |
0 |
The value that seeds the generator and is used with prng_index to determine its initial state. |
rng_index |
integer |
0 |
The value that indexes the generator. This can be used to identify different runs of an experiment or to seed different instantiations of the compartmental modeling software across multiple processors. |
Example#
{
"solver": "SSA",
"duration": 1000,
"runs": 3,
"RNG": { "type": "RANDLIB" },
"rng_seed" : 2017,
"rng_index" : 42
}