|
Kore
|
Generates values which are kind of random. More...
#include <kinc/global.h>Go to the source code of this file.
Functions | |
| KINC_FUNC void | kinc_random_init (int64_t seed) |
| Initializes the randomizer with a seed. This is optional but helpful. | |
| KINC_FUNC int64_t | kinc_random_get (void) |
| Returns a random value. | |
| KINC_FUNC int64_t | kinc_random_get_max (int64_t max) |
| Returns a value between 0 and max (both inclusive). | |
| KINC_FUNC int64_t | kinc_random_get_in (int64_t min, int64_t max) |
| Returns a value between min and max (both inclusive). | |
Generates values which are kind of random.
| KINC_FUNC int64_t kinc_random_get | ( | void | ) |
Returns a random value.
| KINC_FUNC int64_t kinc_random_get_in | ( | int64_t | min, |
| int64_t | max ) |
Returns a value between min and max (both inclusive).
| KINC_FUNC int64_t kinc_random_get_max | ( | int64_t | max | ) |
Returns a value between 0 and max (both inclusive).
| KINC_FUNC void kinc_random_init | ( | int64_t | seed | ) |
Initializes the randomizer with a seed. This is optional but helpful.
| seed | A value which should ideally be pretty random |