public member function
<random>

std::uniform_real_distribution::b

result_type b() const;
Upper bound of range
Returns the parameter b associated with the uniform_real_distribution. This parameter specifies the upper bound of the range of values potentially returned by its member operator().

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

This parameter is set on construction as the second argument.

Parameters

none

Return value

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

Complexity

Constant.

See also