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

Produces random values across the full range of an unsigned type&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename R,
    typename URBG&gt;
R
Uniform(URBG&& urbg)
requires !std&colon;&colon;numeric&lowbar;limits&lt;R&gt;&colon;&colon;is&lowbar;signed;
----

== Description

Overload of `Uniform()` using the minimum and maximum values of a given type `T` (which must be unsigned), returning a value of type `unsigned T`&period;

== Return Value

A random value uniformly distributed across the range of `R`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *urbg*
| The uniform random bit generator&period;
|===


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