ot::Random::NonCrypto::GetUint16InRange() function
Generates and returns a random `uint16_t` value within a given range `[aMin, aMax)`.
Syntax
uint16_t GetUint16InRange(uint16_t aMin,
uint16_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 `uint16_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.
![]()
uint16_t GetUint16InRange(uint16_t aMin, uint16_t aMax)![]()
uint16_t GetUint16InRange(uint16_t aMin, uint16_t aMax);![]()
return Random::NonCrypto::GetUint16InRange(aMin, aMax);
ot::Random::NonCrypto::GetUint16InRange() is called by 12 functions and calls 2 functions:
![]()
ot::Random::NonCrypto::GetUint16InRange()
ot::Random::NonCrypto::GetUint16InRange():
![]()
ot::Random::NonCrypto::GetUint16InRange()