10 #if !defined(EXRANDOM_UNIT_UNIFORM_DISTRIBUTION_HPP) 11 #define EXRANDOM_UNIT_UNIFORM_DISTRIBUTION_HPP 1 41 template<
typename RealType =
double>
73 : _uniform_dist(_D) {}
107 template<
typename Generator>
110 {
return _uniform_dist.template value<result_type>(g); }
117 template<
typename Generator>
168 static_assert(!std::numeric_limits<RealType>::is_integer,
169 "template argument not a floating point type");
171 static const uint_t _base = std::numeric_limits<RealType>::radix == 2 ?
172 0UL : std::numeric_limits<RealType>::radix;
179 #endif // EXRANDOM_UNIT_UNIFORM_DISTRIBUTION_HPP
Definition of rand_digit.