[#absl-discrete_distribution-operator_call-0f]
= xref:absl.adoc[absl]::xref:absl/discrete_distribution.adoc[discrete&lowbar;distribution]::operator()
:relfileprefix: ../../
:mrdocs:

Function call operators

== Synopses

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

Generates a random integer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename URBG&gt;
xref:absl/discrete_distribution/result_type.adoc[result&lowbar;type]
xref:absl/discrete_distribution/operator_call-09.adoc[operator()](URBG& g);
----

[.small]#xref:absl/discrete_distribution/operator_call-09.adoc[_» more&period;&period;&period;_]#

Generates a random integer using the given parameter set&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename URBG&gt;
xref:absl/discrete_distribution/result_type.adoc[discrete&lowbar;distribution&lt;IntType&gt;::result&lowbar;type]
xref:absl/discrete_distribution/operator_call-07.adoc[operator()](
    URBG& g,
    xref:absl/discrete_distribution/param_type.adoc[param&lowbar;type] const& p);
----

[.small]#xref:absl/discrete_distribution/operator_call-07.adoc[_» more&period;&period;&period;_]#

== Return Value

* A random integer distributed according to the parameter set&period;
* A random integer distributed according to `p`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *g*
| The uniform random bit generator&period;
| *p*
| The parameter set to use for this call&period;
|===


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