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

Name

Description

g

The uniform random bit generator.

param

The parameter set to use for this call.

Created with MrDocs