ot::Random::NonCrypto::GetUint32InRange() function
Generates and returns a random `uint32_t` value within a given range `[aMin, aMax)`.
Syntax
uint32_t GetUint32InRange(uint32_t aMin,
uint32_t aMax);
Arguments
aMin
A minimum value (this value can be included in returned random result).
aMax
A maximum value (this value is excluded from returned random result).
Return value
A random `uint32_t` value in the given range (i.e., aMin <= random value < aMax).
Notes
The returned random value can include the @p aMin value but excludes the @p aMax.