[#absl-bernoulli_distribution-2constructor-02]
= xref:absl.adoc[absl]::xref:absl/bernoulli_distribution.adoc[bernoulli&lowbar;distribution]::bernoulli&lowbar;distribution
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;absl&sol;random&sol;bernoulli&lowbar;distribution&period;h&gt;`

Constructs a distribution with acceptance probability 0&period;5&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/bernoulli_distribution/2constructor-09.adoc[bernoulli&lowbar;distribution]();
----

[.small]#xref:absl/bernoulli_distribution/2constructor-09.adoc[_» more&period;&period;&period;_]#

Constructs a distribution with the given acceptance probability&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/bernoulli_distribution/2constructor-0d.adoc[bernoulli&lowbar;distribution](double p);
----

[.small]#xref:absl/bernoulli_distribution/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Constructs a distribution from the given parameter set&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/bernoulli_distribution/2constructor-0b.adoc[bernoulli&lowbar;distribution](xref:absl/bernoulli_distribution/param_type.adoc[param&lowbar;type] p);
----

[.small]#xref:absl/bernoulli_distribution/2constructor-0b.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| The probability of producing `true`&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
