12 #if !defined(RANDOMLIB_EXPONENTIALDISTRIBUTION_HPP)
13 #define RANDOMLIB_EXPONENTIALDISTRIBUTION_HPP 1
57 template<
class Random>
61 template<typename RealType> template<class
Random> inline RealType
64 return -mu * std::log(r.template FloatU<RealType>());
69 #endif // RANDOMLIB_EXPONENTIALDISTRIBUTION_HPP
RealType operator()(Random &r, RealType mu=RealType(1)) const
Generate random integers, reals, and booleans.
The exponential distribution.