|
MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <RNG.h>
Inheritance diagram for moose::RNG< T >:
Collaboration diagram for moose::RNG< T >:Public Member Functions | |
| T | getSeed (void) |
| RNG () | |
| void | setRandomSeed () |
| void | setSeed (const unsigned long seed) |
| If seed if 0 then set seed to a random number else set seed to the given number. More... | |
| T | uniform (const T a, const T b) |
| Generate a uniformly distributed random number between a and b. More... | |
| T | uniform (void) |
| Return a uniformly distributed random number between 0 and 1 (exclusive). More... | |
| ~RNG () | |
Private Attributes | |
| moose::MOOSE_UNIFORM_DISTRIBUTION < double > | dist_ |
| T | res_ |
| moose::MOOSE_RNG_DEFAULT_ENGINE | rng_ |
| T | seed_ |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
If seed if 0 then set seed to a random number else set seed to the given number.
| seed |
Definition at line 73 of file RNG.h.
Referenced by moose::mtseed(), GssaVoxelPools::reinit(), and ZombieCompartment::vReinit().
Here is the caller graph for this function:
|
inline |
Generate a uniformly distributed random number between a and b.
| a | Lower limit (inclusive) |
| b | Upper limit (inclusive). |
Definition at line 90 of file RNG.h.
Referenced by GssaVoxelPools::advance(), moose::mtrand(), ZombieCompartment::mtrand(), GssaVoxelPools::pickReac(), GssaVoxelPools::recalcTime(), GssaVoxelPools::reinit(), and GssaVoxelPools::xferIn().
Here is the caller graph for this function:
|
inline |
|
private |
|
private |
|
private |
|
private |