[#absl-uniform_real_distribution]
= xref:absl.adoc[absl]::uniform&lowbar;real&lowbar;distribution
:relfileprefix: ../
:mrdocs:

This distribution produces random floating&hyphen;point values uniformly distributed over the half&hyphen;open interval &lsqb;a, b)&period;&rsqb;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename RealType = double&gt;
class uniform&lowbar;real&lowbar;distribution;
----

== Description

Example&colon;

absl&colon;&colon;BitGen gen&semi;

&sol;&sol; Use the distribution to produce a value between 0&period;0 (inclusive) &sol;&sol; and 1&period;0 (exclusive)&period; double value &equals; absl&colon;&colon;uniform&lowbar;real&lowbar;distribution&lt;double&gt;(0, 1)(gen)&semi;

== Types

[cols="1,4"]
|===
| Name| Description
| xref:absl/uniform_real_distribution/param_type.adoc[`param&lowbar;type`] 
| The parameter set of the distribution&period;
|===


== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:absl/uniform_real_distribution/result_type.adoc[`result&lowbar;type`] 
| The type of the values produced by the distribution&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:absl/uniform_real_distribution/2constructor-0a.adoc[`uniform&lowbar;real&lowbar;distribution`]         [.small]#[constructor]#
| Constructors
| xref:absl/uniform_real_distribution/a.adoc[`a`] 
| Returns the lower bound of the interval&period;
| xref:absl/uniform_real_distribution/b.adoc[`b`] 
| Returns the upper bound of the interval&period;
| xref:absl/uniform_real_distribution/max.adoc[`max`] 
| Returns the largest value the distribution can produce&period;
| xref:absl/uniform_real_distribution/min.adoc[`min`] 
| Returns the smallest value the distribution can produce&period;
| xref:absl/uniform_real_distribution/operator_call-04.adoc[`operator()`] 
| Function call operators
| xref:absl/uniform_real_distribution/param-03.adoc[`param`] 
| `param` overloads
| xref:absl/uniform_real_distribution/reset.adoc[`reset`] 
| Resets the uniform real distribution&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:absl/operator_not_eq-0c0.adoc[absl::operator!&equals;]`
| Compares two distributions for inequality&period;
| `xref:absl/operator_eq-086.adoc[absl::operator&equals;&equals;]`
| Compares two distributions for equality&period;
|===


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