INGOR
|
Random number generator. More...
Functions | |
ytRNG_dSFMT * | ytRNG_dSFMT_new () |
Generates an instance for dSFMT random number generator. | |
void | ytRNG_dSFMT_delete (void *dsfmt) |
Deletes the dSFMT random number generator instance. | |
ytRNG_dSFMT * | ytRandom_dSFMT_new_init (uint32_t seed) |
Generates an instance for dSFMT random number generator. | |
double | ytRNG_dSFMT_close_open (ytRNG_dSFMT *dsfmt) |
Generates a double precision pseudo random number ranging [0,1). | |
Random number generator.
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/index.html
ytRNG_dSFMT * ytRandom_dSFMT_new_init | ( | uint32_t | seed | ) |
Generates an instance for dSFMT random number generator.
seed |
double ytRNG_dSFMT_close_open | ( | ytRNG_dSFMT * | dsfmt | ) |
Generates a double precision pseudo random number ranging [0,1).
This function generates and returns a double precision pseudo random number which distributes uniformly in the range [0, 1).
dsfmt | pointer to the dSFMT instance. |
void ytRNG_dSFMT_delete | ( | void * | dsfmt | ) |
Deletes the dSFMT random number generator instance.
dsfmt | pointer to the dSFMT instance to be deleted. |
ytRNG_dSFMT * ytRNG_dSFMT_new | ( | ) |
Generates an instance for dSFMT random number generator.
This initializes the random number generator with a default seed value (0).
ytRNG_dSFMT_new_init() is recommended to initialize the returning instance at once.