[#absl-discrete_distribution-2constructor-0b]
= xref:absl.adoc[absl]::xref:absl/discrete_distribution.adoc[discrete&lowbar;distribution]::discrete&lowbar;distribution
:relfileprefix: ../../
:mrdocs:

Constructs a distribution from a list of weights&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
discrete&lowbar;distribution(std::initializer&lowbar;list&lt;double&gt; weights);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *weights*
| The weights of the possible outcomes&period;
|===


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