Skip to content

Random

Defines

MIRA_RANDOM_MAX

#define MIRA_RANDOM_MAX

Maximum value of result for mira_random_generate().

Functions

mira_random_generate

uint16_t mira_random_generate(void);

Generate a random number

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.