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