SST/macro
|
This is a base class for random number generators that return an integer uniformly distributed in a range. More...
#include <rng.h>
Public Member Functions | |
virtual | ~UniformInteger () |
virtual rngint_t | value ()=0 |
rngint_t | value_in_range (rngint_t range) |
virtual void | vec_reseed (const std::vector< rngint_t > &seeds)=0 |
virtual int | nseed ()=0 |
virtual double | realvalue (bool include_zero=true, bool include_one=true) |
Return a random value in the interval [0,1], (0,1], [0,1), or (0,1) More... | |
void | reseed () |
void | reseed (rngint_t) |
void | reseed (rngint_t, rngint_t) |
void | reseed (rngint_t, rngint_t, rngint_t) |
void | reseed (rngint_t, rngint_t, rngint_t, rngint_t) |
This is a base class for random number generators that return an integer uniformly distributed in a range.
|
virtual |
|
pure virtual |
Implemented in RNG::Combo, RNG::SWB, RNG::LFIB4, RNG::Table256, RNG::SimpleCombo, RNG::CONG, RNG::SHR3, RNG::MWC, and RNG::mersenne_twister.
Referenced by RNG::SHR3::to_string(), RNG::SWB::to_string(), RNG::MWC::value(), RNG::CONG::value(), RNG::SimpleCombo::value(), RNG::LFIB4::value(), RNG::Combo::value(), and value_in_range().
|
inlinevirtual |
void RNG::UniformInteger::reseed | ( | ) |
Referenced by realvalue().
void RNG::UniformInteger::reseed | ( | rngint_t | ) |
|
pure virtual |
Implemented in RNG::Combo, RNG::SWB, RNG::LFIB4, RNG::SimpleCombo, RNG::CONG, RNG::SHR3, RNG::mersenne_twister, and RNG::MWC.
Referenced by RNG::ExponentialDistribution::ExponentialDistribution(), RNG::UniformInteger_functor::operator()(), realvalue(), RNG::SHR3::to_string(), RNG::SWB::to_string(), and value_in_range().
Definition at line 36 of file rng.h.
References nseed(), value(), and vec_reseed().
Referenced by RNG::UniformInteger_functor::operator()().
|
pure virtual |
Implemented in RNG::Combo, RNG::SWB, RNG::LFIB4, RNG::Table256, RNG::SimpleCombo, RNG::CONG, RNG::SHR3, RNG::MWC, and RNG::mersenne_twister.
Referenced by RNG::SHR3::to_string(), RNG::SWB::to_string(), RNG::MWC::value(), RNG::CONG::value(), RNG::SimpleCombo::value(), RNG::LFIB4::value(), RNG::Combo::value(), and value_in_range().