public member function
<random>

std::normal_distribution::max

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

Because normal_distribution represents an unbounded distribution, the function returns the maximum value representable by result_type:
either numeric_limits<result_type>::max() or numeric_limits<result_type>::infinity(), depending on implementation.

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 (RealType).

Complexity

Constant.

See also