INGOR
Loading...
Searching...
No Matches
Functions
YtRNG_dSFMT

Random number generator. More...

Functions

ytRNG_dSFMTytRNG_dSFMT_new ()
 Generates an instance for dSFMT random number generator.
 
void ytRNG_dSFMT_delete (void *dsfmt)
 Deletes the dSFMT random number generator instance.
 
ytRNG_dSFMTytRandom_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).
 

Detailed Description

Random number generator.

http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/index.html

Function Documentation

◆ ytRandom_dSFMT_new_init()

ytRNG_dSFMT * ytRandom_dSFMT_new_init ( uint32_t  seed)

Generates an instance for dSFMT random number generator.

Parameters
seed

◆ ytRNG_dSFMT_close_open()

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).

Parameters
dsfmtpointer to the dSFMT instance.
Returns
double precision floating point pseudorandom number

◆ ytRNG_dSFMT_delete()

void ytRNG_dSFMT_delete ( void *  dsfmt)

Deletes the dSFMT random number generator instance.

Parameters
dsfmtpointer to the dSFMT instance to be deleted.

◆ ytRNG_dSFMT_new()

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.