Defined in header <random> template< class RealType = double >
class uniform_real_distribution; (since C++11)
Produces random floating-point values i, uniformly distributed on the interval [a, b), that is, distributed according to the probability function: P(i|a,b) =
1b − a
.
std::uniform_real_distribution satisfies all requirements of RandomNumberDistribution.
Template parameters
RealType - The result type generated by the generator. The effect is undefi