41 template <
typename T >
92 return ( b - a ) * dist_( rng_ ) + a;
103 return dist_( rng_ );
T uniform(void)
Return a uniformly distributed random number between 0 and 1 (exclusive).
moose::MOOSE_RNG_DEFAULT_ENGINE rng_
std::mersenne_twister_engine< std::uint_fast32_t, 32, 624, 397, 31, 0x9908b0df, 11, 0xffffffff, 7, 0x9d2c5680, 15, 0xefc60000, 18, 1812433253 > MOOSE_RNG_DEFAULT_ENGINE
void setSeed(const unsigned long seed)
If seed if 0 then set seed to a random number else set seed to the given number.
std::uniform_real_distribution< T > MOOSE_UNIFORM_DISTRIBUTION
moose::MOOSE_UNIFORM_DISTRIBUTION< double > dist_
T uniform(const T a, const T b)
Generate a uniformly distributed random number between a and b.
std::random_device MOOSE_RANDOM_DEVICE