absl::bernoulli_distribution::operator()

Generates a random boolean value using the given parameter set.

Synopsis

Declared in <absl/random/bernoulli_distribution.h>

template<typename URBG>
bool
operator()(
    URBG& g,
    param_type const& param);

Return Value

A random boolean value.

Parameters

NameDescription
gThe uniform random bit generator.
paramThe parameter set to use for this call.