openModeller  Version 1.5.0
Random.hh
Go to the documentation of this file.
1 
30 #ifndef _RANDOMHH_
31 #define _RANDOMHH_
32 
34 #include <openmodeller/om_defs.hh>
35 
36 
37 /********************************************************/
38 /************************ Random ************************/
39 
44 class dllexp Random
45 {
46 public:
47  Random();
48 
50  double get( double min, double max );
52  double get( double max );
54  double get() { return random(); }
55 
56  double operator()( double min, double max );
57  double operator()( double max );
58  double operator()() { return random(); }
59 
60 
62  int get( int min, int max );
64  int get( int max );
65 
66  int operator()( int min, int max );
67  int operator()( int max );
68 
70  long get( long min, long max );
72  long get( long max );
73 
74  long operator()( long min, long max );
75  long operator()( long max );
76 
80  double discrete( float range, float dim_interv );
81 
82 
83 private:
84 
86  double random();
87 
88  static int _initialized;
89 };
90 
91 
92 #endif
93 
94 
Definition: Random.hh:44
double operator()()
Definition: Random.hh:58
static int _initialized
Definition: Random.hh:88
int min(int v1, int v2)
Definition: rules_base.cpp:56