Efros-Leung
Exemplar-basedtexturesynthesis(Efros-Leung)
|
Mersenne Twister pseudo-RNG code. More...
Go to the source code of this file.
Defines | |
#define | MT_VERSION "0.20110401" |
Functions | |
void | mt_init (unsigned long s) |
initializes the generator with a seed | |
double | mt_drand53 (void) |
generates a random number on [0,1) with 53-bit resolution |
Mersenne Twister pseudo-RNG code.
This is the original code by Takuji Nishimura and Makoto Matsumoto, amended to keep only the parts used and with the finctions renamed. Source : http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html