std::bernoulli_distribution
From cppreference.com
Template:cpp/numeric/random/bernoulli distribution/sidebar
Defined in header <random>
|
||
class bernoulli_distribution; |
(since C++11) | |
Produces random boolean values, according to the discrete probability function. The probability of Template:cpp is
- P(b|p) =⎧
⎨
⎩p if Template:cpp
1 − p if Template:cpp
Contents |
Member types
Template:tdcl list begin Template:tdcl list hitem Template:tdcl list item Template:tdcl list item Template:tdcl list end
Member functions
Non-member functions
Example
External links
Weisstein, Eric W. "Bernoulli Distribution." From MathWorld--A Wolfram Web Resource.