26 #ifndef Common_Random_h
27 #define Common_Random_h
42 static void seed(
unsigned int s);
46 static uint32_t
number32(uint32_t maximum = 0);
50 static int64_t
number64(int64_t maximum = 0);
66 #endif // Common_Random_h
Convenience interface for random number and data generation.
static uint32_t number32(uint32_t maximum=0)
Returns a random 32-bit unsigned integer.
static int64_t number64(int64_t maximum=0)
Returns a random 64-bit unsigned integer.
static double uniform01()
Returns a random double.
static std::chrono::milliseconds duration_millis(uint32_t maximum)
Returns a random millisecond duration.
static void seed(unsigned int s)
Sets the seed of the random number generator.