14 #ifndef RANDOM_NEW_H_INCLUDED
15 #define RANDOM_NEW_H_INCLUDED
18 #include <boost/cstdint.hpp>
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()
int get_random_int(int min, int max)
This helper method provides a random int from the underlying generator, using results of next_random...
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.
int get_random_int_in_range_zero_to(int max)
Does the hard work of get_random_int.