00001 typedef struct 00002 { 00003 int m[17]; 00004 int seed; 00005 int i; /* originally = 4 */ 00006 int j; /* originally = 16 */ 00007 int /*boolean*/ haveRange; /* = false; */ 00008 double left; /*= 0.0; */ 00009 double right; /* = 1.0; */ 00010 double width; /* = 1.0; */ 00011 } 00012 Random_struct, *Random; 00013 00014 Random new_Random_seed(int seed); 00015 double Random_nextDouble(Random R); 00016 void Random_delete(Random R); 00017 double *RandomVector(int N, Random R); 00018 double **RandomMatrix(int M, int N, Random R);