SG++-Doxygen-Documentation
|
Wraps the random generator to use. More...
#include <Random.hpp>
Static Public Member Functions | |
static double | random_double () |
returns a random double value in [0, 1) More... | |
static std::uint64_t | random_uint64 () |
returns a random integer value in [0, RAND_MAX) More... | |
static void | seed (std::uint64_t seed_value=std::mt19937_64::default_seed) |
Manually seed the generator with a given seed. More... | |
Static Protected Attributes | |
static std::uniform_int_distribution< std::uint64_t > | distInt |
static std::uniform_real_distribution< double > | distReal |
static std::mt19937_64 | gen = std::mt19937_64() |
static bool | is_seeded = false |
Wraps the random generator to use.
Ensures that it is is seeded correctly.
|
static |
|
static |
|
static |
Manually seed the generator with a given seed.
seed_value | the seed to use. |
References gen, and is_seeded.
Referenced by random_double(), and random_uint64().
|
staticprotected |
Referenced by random_uint64().
|
staticprotected |
Referenced by random_double().
|
staticprotected |
Referenced by random_double(), random_uint64(), and seed().
|
staticprotected |
Referenced by random_double(), random_uint64(), and seed().