MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <RNG.h>
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().
|
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().
|
inline |
|
private |
|
private |
|
private |
|
private |