public member function
<random>

std::bernoulli_distribution::max

bool max() const;
Maximum value
Returns the least upper bound of the range of values potentially returned by member operator(), which for bernoulli_distribution is true.

Parameters

none

Return value

true

Complexity

Constant.

See also