absl::bernoulli_distribution::bernoulli_distribution

Constructors

Synopses

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...

Parameters

NameDescription
pThe probability of producing true.