otRandomNonCryptoGetUint16InRange() function
Generates and returns a random `uint16_t` value within a given range `[aMin, aMax)`.
Syntax
uint16_t otRandomNonCryptoGetUint16InRange(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.