public member function
<random>

std::uniform_int_distribution::b

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

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

Complexity

Constant.

See also