33 #ifndef DART_MATH_RANDOM_HPP_
34 #define DART_MATH_RANDOM_HPP_
48 template <
typename FloatType>
51 template <
typename IntType>
54 template <
typename FloatType>
65 static void setSeed(
unsigned int seed);
71 static unsigned int generateSeed(
bool applyGeneratedSeed =
false);
123 template <
typename S>
124 static S
uniform(S min, S max);
148 template <
typename FixedSizeT>
150 typename FixedSizeT::Scalar min,
typename FixedSizeT::Scalar max);
167 template <
typename DynamicSizeVectorT>
168 static DynamicSizeVectorT
uniform(
170 typename DynamicSizeVectorT::Scalar min,
171 typename DynamicSizeVectorT::Scalar max);
184 template <
typename DynamicSizeMatrixT>
185 static DynamicSizeMatrixT
uniform(
188 typename DynamicSizeMatrixT::Scalar min,
189 typename DynamicSizeMatrixT::Scalar max);
212 template <
typename S>
213 static S
normal(S mean, S sigma);
Definition: Random.hpp:44
std::uniform_int_distribution< IntType > UniformIntDist
Definition: Random.hpp:52
std::normal_distribution< FloatType > NormalRealDist
Definition: Random.hpp:55
std::uniform_real_distribution< FloatType > UniformRealDist
Definition: Random.hpp:49
static S normal(S mean, S sigma)
Returns a random number from a normal distribution.
Definition: Random-impl.hpp:453
static void setSeed(unsigned int seed)
Sets the seed value.
Definition: Random.cpp:46
static unsigned int getSeed()
Definition: Random.cpp:63
std::mt19937 GeneratorType
Definition: Random.hpp:46
static unsigned int generateSeed(bool applyGeneratedSeed=false)
Generates a seed value using the default random device.
Definition: Random.cpp:54
static unsigned int & getSeedMutable()
Definition: Random.cpp:69
static GeneratorType & getGenerator()
Returns a mutable reference to the random generator.
Definition: Random.cpp:39
static S uniform(S min, S max)
Returns a random number from an uniform distribution.
Definition: Random-impl.hpp:412
Definition: BulletCollisionDetector.cpp:63