[#FastRandomContext-rand_uniform_delay]
= xref:FastRandomContext.adoc[FastRandomContext]::rand&lowbar;uniform&lowbar;delay
:relfileprefix: ../
:mrdocs:

Return the time point advanced by a uniform random duration&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Tp&gt;
Tp
rand&lowbar;uniform&lowbar;delay(
    Tp const& time,
    Tp::duration range) noexcept;
----

== Return Value

`time` advanced by a uniform random duration in &lsqb;0, range)&period;&rsqb;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *time*
| The base time point&period;
| *range*
| The width of the uniform delay applied to `time`&period;
|===


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