|
eolib 0.6.1
A core C library for writing applications related to Endless Online
|
#include "eolib/rng.h"Go to the source code of this file.
Functions | |
| void | eo_srand (uint32_t seed) |
| uint32_t | eo_rand (void) |
| uint32_t | eo_rand_range (uint32_t min, uint32_t max) |
Variables | |
| static uint32_t | state_high |
| static uint32_t | current_seed |
| uint32_t eo_rand | ( | void | ) |
Generate a pseudo-random 32-bit unsigned integer. The sequence of numbers generated depends on the seed set by eo_srand().
Generate a pseudo-random 32-bit unsigned integer within a specified range [min, max]. The sequence of numbers generated depends on the seed set by eo_srand().
| void eo_srand | ( | uint32_t | seed | ) |