public member function
<random>

std::uniform_int_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 uniform_int_distribution is the distribution parameter b.

Parameters

none

Return value

Distribution parameter b.
result_type is a member type, defined as an alias of the first class template parameter (IntType).

Complexity

Constant.

See also