My Project
 All Classes Functions
Random.h
1 /*
2  * Random.h
3  *
4  * Created on: Nov 15, 2012
5  * Author: yajia
6  */
7 
8 #ifndef RANDOM_H_
9 #define RANDOM_H_
10 
11 #define PI 3.14159265
12 
13 class Random
14 {
15 public:
16  static int nextInt( const int range);
17  static int nextInt( const int r1, const int r2);
18  static double nextDouble( const double range);
19  static double nextDouble( const double r1, const double r2);
20  static double nextNormal();
21  static double nextNormal( const double mean, const double std);
22 };
23 
24 #endif /* RANDOM_H_ */