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

Constructs a distribution from a range of weights&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename InputIterator&gt;
explicit
discrete&lowbar;distribution(
    InputIterator begin,
    InputIterator end);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *begin*
| An iterator to the first weight&period;
| *end*
| An iterator past the last weight&period;
|===


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