Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/external/mt19937ar.h

00001 #ifndef __mt19937ar__
00002 #define __mt19937ar__
00003 
00004 //This .h file written for ZEngine by James Turk to declare the methods implemented in mt19937ar.c
00005 //See mt19937ar.c for license of the Mersenne Twister.
00006 
00007 #include <cstdio>  //changed for ZEngine
00008 /* Period parameters */  
00009 #define N 624
00010 #define M 397
00011 #define MATRIX_A 0x9908b0dfUL   /* constant vector a */
00012 #define UPPER_MASK 0x80000000UL /* most significant w-r bits */
00013 #define LOWER_MASK 0x7fffffffUL /* least significant r bits */
00014 
00015 void init_genrand(unsigned long s);
00016 unsigned long genrand_int32(void);
00017 long genrand_int31(void);
00018 double genrand_real1(void);
00019 double genrand_real2(void);
00020 double genrand_real3(void);
00021 double genrand_res53(void);
00022 
00023 #endif //__mt19937ar__

Generated on Sun Apr 27 18:16:26 2003 for ZEngine by doxygen1.3-rc2