[#RandomMixin-01-rand_uniform_duration]
= xref:RandomMixin-01.adoc[RandomMixin]::rand&lowbar;uniform&lowbar;duration
:relfileprefix: ../
:mrdocs:

Generate a uniform random duration in the range from 0 (inclusive) to range (exclusive)&period;

== Synopsis

Declared in `&lt;random&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Chrono&gt;
requires StdChronoDuration&lt;typename Chrono&colon;&colon;duration&gt;
Chrono::duration
rand&lowbar;uniform&lowbar;duration(Chrono::duration range) noexcept;
----

== Return Value

A uniform random duration in &lsqb;0, range) (or (range, 0&rsqb;when `range` is negative)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *range*
| The signed bound on the duration&semi; the result lies between 0 and `range`&period;
|===


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