1.2.10.4.5 SRV_RANDOM_Get32bitsInRange Function
C
uint16_t SRV_RANDOM_Get32bitsInRange(
uint16_t min,
uint16_t max
);
Summary
Returns a random value of 32 bits within the given range.
Description
This function returns a random value of 32 bits within the given range.
Precondition
None.
Parameters
Param | Description |
---|---|
min | Minimum value of the range |
max | Maximum value of the range |
Returns
32-bit random value.
Example
uint32_t rndNum = SRV_RANDOM_Get32bits(0, 0xFFFFF);
Remarks
None.