[#InsecureRandomContext-randrange-0c]
= xref:InsecureRandomContext.adoc[InsecureRandomContext]::randrange
:relfileprefix: ../
:mrdocs:

Generate a uniform random duration in the range &lsqb;0&period;&period;max)&period; Precondition&colon; max&period;count() &gt; 0&rsqb;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:StdChronoDuration.adoc[StdChronoDuration] Dur&gt;
Dur
randrange(std::common&lowbar;type&lowbar;t&lt;Dur&gt; range) noexcept;
----

== Return Value

A uniform random duration in &lsqb;0, range)&period;&rsqb;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *range*
| The exclusive upper bound on the duration&semi; its count must be greater than 0&period;
|===


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