public member function
<random>

std::geometric_distribution::max

result_type max() const;
Maximum value
Returns the least upper bound of the range of values potentially returned by member operator().

Because geometric_distribution is a right-unbounded distribution, the function returns the maximum value representable by result_type:
numeric_limits<result_type>::max()

Parameters

none

Return value

The value of the least upper bound of the distribution's range that is representable with result_type.
result_type is a member type, defined as an alias of the first class template parameter (IntType).

Complexity

Constant.

See also