19#ifndef HEADER_RANDOM_GENERATOR_HPP
20#define HEADER_RANDOM_GENERATOR_HPP
36 unsigned int m_random_value;
37 unsigned int m_a, m_c;
38 static std::vector<RandomGenerator*> m_all_random_generators;
45 int get(
int n) {
return rand() % n; }
46 void seed(
int s) {m_random_value = s;}
A random number generator.
Definition: random_generator.hpp:34
int get(int n)
Returns a pseudo random number between 0 and n-1 inclusive.
Definition: random_generator.hpp:45