21 #include <boost/random/mersenne_twister.hpp>
25 #define DBG_RND LOG_STREAM(debug, log_random)
26 #define LOG_RND LOG_STREAM(info, log_random)
27 #define WRN_RND LOG_STREAM(warn, log_random)
28 #define ERR_RND LOG_STREAM(err, log_random)
67 static rng* def =
new rng_default();
static lg::log_domain log_random("random")
virtual uint32_t next_random_impl()=0
rng * generator
This generator is automatically synced during synced context.
unsigned int get_random_calls()
Provides the number of random calls to the rng in this context.
static rng & default_instance()
uint32_t next_random()
Provides the next random draw.
unsigned int random_calls_
this class does not give synced random results derived classes might do.
Standard logging facilities (interface).
int get_random_int_in_range_zero_to(int max)
Does the hard work of get_random_int.