29 template<
typename T,
template<
typename>
class DistributionT,
typename EngineT = std::mt19937>
35 template <
class Generator,
class Dist >
51 template <
class ValT >
117 template<
typename T,
template<
typename>
class DistributionT,
typename EngineT>
119 m_generator(EngineT(), DistributionT<T>())
123 template<
typename T,
template<
typename>
class DistributionT,
typename EngineT>
125 m_generator(EngineT(), DistributionT<T>(minValue, maxValue))
129 template<
typename T,
template<
typename>
class DistributionT,
typename EngineT>
131 m_generator(EngineT(), DistributionT<T>())
136 template<
typename T,
template<
typename>
class DistributionT,
typename EngineT>
138 m_generator(EngineT(), DistributionT<T>(minValue, maxValue))
143 template<
typename T,
template<
typename>
class DistributionT,
typename EngineT>
146 return m_generator();
149 template<
typename T,
template<
typename>
class DistributionT,
typename EngineT>
152 m_generator.engine().seed(seed);
153 m_generator.distribution().reset();
156 template<
typename T,
template<
typename>
class DistributionT,
typename EngineT>
159 return m_generator();
163 template<
typename T,
template<
typename>
class DistributionT,
typename EngineT>
169 template<
typename T,
template<
typename>
class DistributionT,
typename EngineT>
Dist::result_type result_type
engine_value_type & engine()
const distribution_type & distribution() const
const engine_value_type & engine() const
distribution_type & distribution()
Generator engine_value_type
variate_generator(engine_type G0, distribution_type D0)
RandomGenerator(agx::UInt32 seed)
RandomGenerator(T minValue, T maxValue)
RandomGenerator(agx::UInt32 seed, T minValue, T maxValue)
T rand()
Returns random number between minValue and maxValue (from constructor).
const ImplementationT & impl() const
void seed(agx::UInt32 seed)
variate_generator< EngineT, DistributionT< T > > ImplementationT
RandomGenerator()
Implementation.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
RandomGenerator< agx::Real, std::uniform_real_distribution > UniformRealGenerator
RandomGenerator< agx::Real32, std::uniform_real_distribution > UniformReal32Generator
RandomGenerator< agx::Int32, std::uniform_int_distribution > UniformInt32Generator
RandomGenerator< agx::Real64, std::uniform_real_distribution > UniformReal64Generator
RandomGenerator< agx::Int64, std::uniform_int_distribution > UniformInt64Generator
RandomGenerator< agx::Int, std::uniform_int_distribution > UniformIntGenerator