RandomMixin::rand_uniform_delay

Return the time point advanced by a uniform random duration.

Synopsis

Declared in <random.h>

template<typename Tp>
Tp
rand_uniform_delay(
    Tp const& time,
    Tp::duration range) noexcept;

Return Value

time advanced by a uniform random duration in [0, range).]

Parameters

NameDescription
timeThe base time point.
rangeThe width of the uniform delay applied to time.