openModeller
Version 1.5.0
Main Page
Modules
Classes
Files
File List
File Members
Random.hh
Go to the documentation of this file.
1
30
#ifndef _RANDOMHH_
31
#define _RANDOMHH_
32
33
#include <
openmodeller/os_specific.hh
>
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
om_defs.hh
Random
Definition:
Random.hh:44
os_specific.hh
Random::operator()
double operator()()
Definition:
Random.hh:58
Random::_initialized
static int _initialized
Definition:
Random.hh:88
min
int min(int v1, int v2)
Definition:
rules_base.cpp:56
src
openmodeller
Random.hh
Generated on Thu Jan 8 2015 17:05:10 for openModeller by
1.8.6