[#absl-bernoulli_distribution-operator_call-0e] = xref:absl.adoc[absl]::xref:absl/bernoulli_distribution.adoc[bernoulli_distribution]::operator() :relfileprefix: ../../ :mrdocs: Function call operators == Synopses Declared in `<absl/random/bernoulli_distribution.h>` Generates a random boolean value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename URBG> bool xref:absl/bernoulli_distribution/operator_call-07.adoc[operator()](URBG& g); ---- [.small]#xref:absl/bernoulli_distribution/operator_call-07.adoc[_» more..._]# Generates a random boolean value using the given parameter set. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename URBG> bool xref:absl/bernoulli_distribution/operator_call-02.adoc[operator()]( URBG& g, xref:absl/bernoulli_distribution/param_type.adoc[param_type] const& param); ---- [.small]#xref:absl/bernoulli_distribution/operator_call-02.adoc[_» more..._]# == Return Value A random boolean value. == Parameters [cols="1,4"] |=== | Name| Description | *g* | The uniform random bit generator. | *param* | The parameter set to use for this call. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#