public member function
<random>

std::uniform_real_distribution::max

result_type max() const;
Upper bound of range
Returns the least upper bound of the range of values potentially returned by member operator(), which for uniform_real_distribution is the distribution parameter b.

The interval of possible values produced by this distribution is right-open, therefore, potential produced values are never equal to this value, but lower.

Parameters

none

Return value

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

Complexity

Constant.

See also