[#absl-Uniform-0e9]
= xref:absl.adoc[absl]::Uniform
:relfileprefix: ../
:mrdocs:

Produces random values of type `T` uniformly distributed in &lsqb;lo, hi)&period;&rsqb;

== Synopsis

Declared in `&lt;absl&sol;random&sol;distributions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename R = void,
    typename URBG&gt;
R
Uniform(
    URBG&& urbg,
    R lo,
    R hi)
requires !std&colon;&colon;is&lowbar;same&lowbar;v&lt;R, void&gt;;
----

== Description

Overload of `Uniform()` using the default closed&hyphen;open interval of &lsqb;lo, hi),&rsqb; and returning values of type `T`&period;

== Return Value

A random value uniformly distributed in &lsqb;lo, hi)&period;&rsqb;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *urbg*
| The uniform random bit generator&period;
| *lo*
| The inclusive lower bound of the interval&period;
| *hi*
| The exclusive upper bound of the interval&period;
|===


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