File: crandom.h

package info (click to toggle)
plink 1.07%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,036 kB
  • sloc: cpp: 69,728; makefile: 123; sh: 12
file content (49 lines) | stat: -rw-r--r-- 1,171 bytes parent folder | download | duplicates (6)
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