public member function
<random>

std::discrete_distribution::max

result_type max() const;
Maximum value
Returns the least upper bound of the range of values potentially returned by member operator(), which for discrete_distribution is the number of probabilities specified in the object.

Parameters

none

Return value

The upper bound of possible values generated by the distribution.
result_type is a member type, defined as an alias of the first class template parameter (IntType).

Complexity

Constant.

See also