Constructors
Declared in <absl/random/bernoulli_distribution.h>
Constructs a distribution with acceptance probability 0.5.
bernoulli_distribution();
» more...
Constructs a distribution with the given acceptance probability.
explicit
bernoulli_distribution(double p);
» more...
Constructs a distribution from the given parameter set.
explicit
bernoulli_distribution(param_type p);
» more...
| Name | Description |
|---|---|
| p | The probability of producing true. |