-
Notifications
You must be signed in to change notification settings - Fork 56
MTY_GetRandomUInt
chrisd1100 edited this page Aug 25, 2022
·
1 revision
Generate a random unsigned integer within a range.
uint32_t MTY_GetRandomUInt(
uint32_t minVal,
uint32_t maxVal
);
minVal
(uint32_t
)
Low of the random range, inclusive.
maxVal
(uint32_t
)
High end of the random range, exclusive.
uint32_t
If maxVal <= minVal
, minVal
is returned.