Random¶
Defines¶
Name | Value | Description |
---|---|---|
MIRA_RANDOM_MAX |
UINT16_MAX | Maximum value of result formira_random_generate() |
Functions¶
mira_random_generate¶
uint16_t mira_random_generate( void);
Generate a random number
Return
An integer ranging from 0 to MIRA_RANDOM_MAX
mira_random_get_max¶
uint16_t mira_random_get_max( void);
Get the largest possible value returned by mira_random_generate()
.
Deprecated, use MIRA_RANDOM_MAX instead
Return
The largest random value.