#include <random.h>
Collaboration diagram for LsgRandom:

Data Fields | |
| LsgObject | super |
| unsigned long int | state [LSG_RANDOM_STATE_SIZE] |
| int | i |
Related Functions | |
| (Note that these are not member 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) |
A pseudo random number generator utilizing the Mersenne Twister algorithm.
|
|
Allocate and initialize a new LsgRandom instance with the given seed value.
|
|
||||||||||||
|
Initialize the instance with a given seed.
|
|
|
Return a random
|
|
|
Return a random
|
|
||||||||||||
|
Return a random
|
|
|
Return a random
|
|
||||||||||||||||
|
Return a random
|