|
Kore 3
|
Generates values which are kind of random. More...
#include <kore3/global.h>Go to the source code of this file.
Functions | |
| KORE_FUNC void | kore_random_init (int64_t seed) |
| Initializes the randomizer with a seed. This is optional but helpful. | |
| KORE_FUNC int64_t | kore_random_get (void) |
| Returns a random value. | |
| KORE_FUNC int64_t | kore_random_get_max (int64_t max) |
| Returns a value between 0 and max (both inclusive). | |
| KORE_FUNC int64_t | kore_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.
| KORE_FUNC int64_t kore_random_get | ( | void | ) |
Returns a random value.
| KORE_FUNC int64_t kore_random_get_in | ( | int64_t | min, |
| int64_t | max ) |
Returns a value between min and max (both inclusive).
| KORE_FUNC int64_t kore_random_get_max | ( | int64_t | max | ) |
Returns a value between 0 and max (both inclusive).
| KORE_FUNC void kore_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 |