35 explicit mt_rng(uint32_t seed);
45 void seed_random(
const std::string & seed,
const unsigned int call_count = 0);
82 void seed_random(
const uint32_t seed,
const unsigned int call_count = 0);
A config object defines a single node in a WML file, with access to child nodes.
std::string get_random_seed_str() const
std::mt19937 mt_
State for the random pool (mersenne twister random generator).
uint32_t get_random_seed() const
void rotate_random()
Resets the random to the 0 calls and the seed to the random this way we stay in the same sequence but...
bool operator==(const mt_rng &other) const
unsigned int random_calls_
Number of time a random number is generated.
uint32_t get_next_random()
Get a new random number.
bool operator!=(const mt_rng &other) const
void seed_random(const std::string &seed, const unsigned int call_count=0)
Same as uint32_t version, but uses a stringstream to convert given hex string.
uint32_t random_seed_
Initial seed for the pool.
unsigned int get_random_calls() const