random_basic.h
1 /*
2  @copyright Russell Standish 2000-2013
3  @author Russell Standish
4  This file is part of EcoLab
5 
6  Open source licensed under the MIT license. See LICENSE for details.
7 */
8 
9 namespace ecolab
10 {
11  class urand: public random_gen
12  {
13  public:
14  double rand();
15  void seed(TCL_args args) {Seed(args);}
16  void Seed(int s) {srand(s);}
17  };
18 
19  class gaussrand: public random_gen
20  {
21  double sum;
22  unsigned int n;
24  public:
25  urand uni;
26  gaussrand() {sum=0; n=0;}
27  double rand();
28  };
29 }
abstract base class for representing random number generators
Definition: random.h:32
Gaussian (normal) random generator.
Definition: random_basic.h:19
#define CLASSDESC_ACCESS(type)
add friend statements for each accessor function
Definition: classdesc_access.h:36
Represent arguments to TCL commands.
Definition: TCL_obj_base.h:138
_OPENMP
Definition: accessor.h:16
Definition: random_basic.h:11