25 #include <boost/random.hpp> 47 typedef boost::variate_generator<GeneratorType&, UniformRealDist >
URealGen;
50 typedef boost::variate_generator<GeneratorType&, NormalRealDist >
NRealGen;
53 typedef boost::variate_generator<GeneratorType&, UniformIntDist >
UIntGen;
65 public:
static void SetSeed(uint32_t _seed);
70 public:
static uint32_t GetSeed();
75 public:
static double GetDblUniform(
double _min = 0,
double _max = 1);
80 public:
static double GetDblNormal(
double _mean = 0,
double _sigma = 1);
85 public:
static int GetIntUniform(
int _min,
int _max);
90 public:
static int GetIntNormal(
int _mean,
int _sigma);
93 private:
static GeneratorType *randGenerator;
95 private:
static uint32_t seed;
boost::mt19937 GeneratorType
Definition: Rand.hh:34
Forward declarations for the common classes.
Definition: Animation.hh:33
Random number generator class.
Definition: Rand.hh:60
boost::normal_distribution< double > NormalRealDist
Definition: Rand.hh:40
boost::uniform_real< double > UniformRealDist
Definition: Rand.hh:37
boost::uniform_int< int > UniformIntDist
Definition: Rand.hh:43
boost::variate_generator< GeneratorType &, UniformRealDist > URealGen
Definition: Rand.hh:47
boost::variate_generator< GeneratorType &, NormalRealDist > NRealGen
Definition: Rand.hh:50
boost::variate_generator< GeneratorType &, UniformIntDist > UIntGen
Definition: Rand.hh:53