1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
//////////////////////////////////////////////////////////////////
// //
// PLINK (c) 2005-2008 Shaun Purcell //
// //
// This file is distributed under the GNU General Public //
// License, Version 2. Please see the file COPYING for more //
// details //
// //
//////////////////////////////////////////////////////////////////
#ifndef __CRANDOM_H__
#define __CRANDOM_H__
#include <vector>
using namespace std;
class CRandom
{
public:
static const int IA;
static const int IM;
static const int IQ;
static const int IR;
static const int NTAB;
static const int NDIV;
static const double EPS;
static const double AM;
static const double RNMX;
// Current seed
static int idum;
static int iy;
static vector<int> iv;
static void srand(long unsigned iseed = 0);
static double rand();
static int rand (int);
};
#endif
|