Itasca C++ Interface
Loading...
Searching...
No Matches
random.h
1
2/**********************************************************************
3* Random number generator class:
4* Right now everything is statically allocated, could go to
5* structure to allow multiple random objects with different seeds.
6* Last Mod.: 4/09/96 -
7**********************************************************************/
8
9#include "basedef.h"
10
11
13{
14 public:
15 Random() {}
16 ~Random() {}
17 struct Info {
18 bool bSet;
19 double dGSet;
20 int iOne;
21 int iTwo;
22 int iThree;
23 };
24
25 static double Gauss();
26 // Returns gaussian distribution between 0.0 and 1.0
27 static double Uniform();
28 // Returns linear distribution between 0.0 and 1.0
29 static double LogNormal(double mean, double SD);
30 // Returns linear distribution between 0.0 and 1.0
31 static void Seed(int i=0);
32 // Should be same magnitude as default seed (10000).
33 // Default used if i=0.
34 static Info GetInfo();
35 static void SetInfo(const Info &inf);
36};
37
Base type definitions for the engine.
Definition random.h:13
#define BASE_EXPORT
Definition basedef.h:24
Definition random.h:17