std::bernoulli_distribution::max

From cppreference.com

 
 
 
Pseudo-random number generation
Uniform random bit generators
Engines and engine adaptors
Non-deterministic generator
Distributions
Uniform distributions
Bernoulli distributions
Poisson distributions
Normal distributions
Sampling distributions
Seed Sequences
(C++11)
C library
 
 
result_type max() const;
(since C++11)

Returns the maximum value potentially generated by the distribution.

Parameters

(none)

Return value

The maximum value potentially generated by the distribution.

Complexity

Constant.

See also

returns the minimum potentially generated value
(public member function)