17 #ifndef IGNITION_MATH_RAND_HH_ 18 #define IGNITION_MATH_RAND_HH_ 50 public:
static void Seed(
unsigned int _seed);
55 public:
static unsigned int Seed();
60 public:
static double DblUniform(
double _min = 0,
double _max = 1);
65 public:
static double DblNormal(
double _mean = 0,
double _sigma = 1);
70 public:
static int32_t IntUniform(
int _min,
int _max);
75 public:
static int32_t IntNormal(
int _mean,
int _sigma);
81 #pragma warning(disable: 4251) 83 private:
static std::unique_ptr<GeneratorType> randGenerator;
90 private:
static uint32_t seed;
std::uniform_int_distribution< int32_t > UniformIntDist
Definition: Rand.hh:41
#define IGNITION_VISIBLE
Use to represent "symbol visible" if supported.
Definition: Helpers.hh:201
Random number generator class.
Definition: Rand.hh:45
std::mt19937 GeneratorType
Definition: Rand.hh:32
std::normal_distribution< double > NormalRealDist
Definition: Rand.hh:38
std::uniform_real_distribution< double > UniformRealDist
Definition: Rand.hh:35
Definition: AffineException.hh:30