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