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

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;std::integral I&gt;
I
randrange(I range) noexcept;
----

== Return Value

A random integer 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]#
