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.

Parameters

Name

Description

p

The probability of producing true.

Created with MrDocs