[#FastRandomContext-randrange-06]
= xref:FastRandomContext.adoc[FastRandomContext]::randrange
:relfileprefix: ../
:mrdocs:

`randrange` overloads

== Synopses

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

Generate a random integer in the range &lsqb;0&period;&period;range), with range &gt; 0&period;&rsqb;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;std::integral I&gt;
I
xref:FastRandomContext/randrange-0b.adoc[randrange](I range) noexcept;
----

[.small]#xref:FastRandomContext/randrange-0b.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:FastRandomContext/randrange-0a.adoc[_» more&period;&period;&period;_]#

== Return Value

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

== Parameters

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


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