|
| MTRand (uint32 oneSeed) |
|
| MTRand (const uint32 bigSeed[], uint32 seedLength=state_size) |
|
template<typename FloatT > |
FloatT | rand () |
|
double | rand () |
|
double | rand (const double &n) |
|
uint32 | randInt () |
|
uint32 | randInt (uint32 n) |
|
void | seed () |
|
void | seed (uint32 oneSeed) |
|
void | seed (const uint32 init_vector[], uint32 init_vector_length=state_size) |
|
std::ostream & | save (std::ostream &) const |
|
std::istream & | load (std::istream &) |
|
template<> |
float | rand () |
|
template<> |
double | rand () |
|
Definition at line 33 of file MersenneTwister.h.
◆ uint32
typedef uint32_t WFMath::MTRand::uint32 |
◆ MTRand() [1/3]
WFMath::MTRand::MTRand |
( |
| ) |
|
|
inline |
◆ MTRand() [2/3]
WFMath::MTRand::MTRand |
( |
uint32 |
oneSeed | ) |
|
|
inlineexplicit |
◆ MTRand() [3/3]
WFMath::MTRand::MTRand |
( |
const uint32 |
bigSeed[], |
|
|
uint32 |
seedLength = state_size |
|
) |
| |
|
inlineexplicit |
◆ load()
std::istream & WFMath::MTRand::load |
( |
std::istream & |
istr | ) |
|
◆ rand() [1/4]
double WFMath::MTRand::rand |
( |
| ) |
|
|
inline |
◆ rand() [2/4]
template<>
float WFMath::MTRand::rand |
( |
| ) |
|
|
inline |
◆ rand() [3/4]
template<>
double WFMath::MTRand::rand |
( |
| ) |
|
|
inline |
◆ rand() [4/4]
double WFMath::MTRand::rand |
( |
const double & |
n | ) |
|
|
inline |
◆ randInt() [1/2]
MTRand::uint32 WFMath::MTRand::randInt |
( |
| ) |
|
◆ randInt() [2/2]
MTRand::uint32 WFMath::MTRand::randInt |
( |
uint32 |
n | ) |
|
|
inline |
◆ save()
std::ostream & WFMath::MTRand::save |
( |
std::ostream & |
ostr | ) |
const |
◆ seed() [1/3]
void WFMath::MTRand::seed |
( |
| ) |
|
◆ seed() [2/3]
void WFMath::MTRand::seed |
( |
const uint32 |
init_vector[], |
|
|
uint32 |
init_vector_length = state_size |
|
) |
| |
◆ seed() [3/3]
void WFMath::MTRand::seed |
( |
uint32 |
oneSeed | ) |
|
◆ instance
MTRand WFMath::MTRand::instance |
|
static |
◆ state_size
const MTRand::uint32 WFMath::MTRand::state_size = 624 |
|
static |
The documentation for this class was generated from the following files: