|
Data Structures |
| struct | LsgRandom |
| | Pseudo random number generator class using the Mersenne Twister algorithm. More...
|
Defines |
|
#define | LSG_RANDOM_H 1 |
|
#define | LSG_RANDOM_STATE_SIZE 624 |
Functions |
|
LsgRandom * | LsgRandom_create (unsigned long int seed) |
|
void | LsgRandom_init (LsgRandom *self, unsigned long int seed) |
|
unsigned long int | LsgRandom_generate (LsgRandom *self) |
|
float | LsgRandom_random (LsgRandom *self) |
|
float | LsgRandom_randomMax (LsgRandom *self, float limit) |
|
float | LsgRandom_randomError (LsgRandom *self) |
|
float | LsgRandom_randomRange (LsgRandom *self, float base, float error) |
| void | random_seed (unsigned long int seed) |
| float | random (void) |
| float | random_max (float max) |
| float | random_error (void) |
| float | random_range (float base, float error) |