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;
66 public:
static void SetSeed(uint32_t _seed)
73 public:
static uint32_t GetSeed()
80 public:
static double GetDblUniform(
double _min = 0,
double _max = 1)
87 public:
static double GetDblNormal(
double _mean = 0,
double _sigma = 1)
94 public:
static int GetIntUniform(
int _min,
int _max)
101 public:
static int GetIntNormal(
int _mean,
int _sigma)
107 private:
static uint32_t seed;
T T _min
Definition: Helpers.hh:130
boost::mt19937 GeneratorType
Definition: Rand.hh:34
static const double GAZEBO_DEPRECATED(8.0) MAX_D
Double maximum value. This value will be similar to 1.79769e+308.
Definition: Helpers.hh:140
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