CMS 3D CMS Logo

Random.h
Go to the documentation of this file.
1 #ifndef RANDOM_H
2 #define RANDOM_H
3 
4 typedef struct
5 {
6  int m[17];
7  int seed;
8  int i; /* originally = 4 */
9  int j; /* originally = 16 */
10  int /*boolean*/ haveRange; /* = false; */
11  double left; /*= 0.0; */
12  double right; /* = 1.0; */
13  double width; /* = 1.0; */
14 }
16 
17 Random new_Random_seed(int seed);
18 double Random_nextDouble(Random R);
19 void Random_delete(Random R);
20 double *RandomVector(int N, Random R);
21 double **RandomMatrix(int M, int N, Random R);
22 
23 #endif
int haveRange
Definition: Random.h:10
int seed
Definition: Random.h:7
struct Random_struct * Random
double width
Definition: Random.h:13
double ** RandomMatrix(int M, int N, Random R)
double * RandomVector(int N, Random R)
void Random_delete(Random R)
Random new_Random_seed(int seed)
#define N
Definition: blowfish.cc:9
double right
Definition: Random.h:12
double left
Definition: Random.h:11
double Random_nextDouble(Random R)