ot::Random::NonCrypto::GetUint8InRange() function
Generates and returns a random `uint8_t` value within a given range `[aMin, aMax)`.
Syntax
uint8_t GetUint8InRange(uint8_t aMin,
uint8_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 `uint8_t` value in the given range (i.e., aMin <= random value < aMax).
ot::Random::NonCrypto::GetUint8InRange() is called by 8 functions and calls 2 functions:
![]()
ot::Random::NonCrypto::GetUint8InRange()
ot::Random::NonCrypto::GetUint8InRange():
![]()
ot::Random::NonCrypto::GetUint8InRange()