Itasca C++ Interface
Toggle main menu visibility
Main Page
Topics
Namespaces
Namespace List
Namespace Members
All
Functions
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
c
d
e
g
i
m
n
o
p
r
s
t
v
w
Typedefs
Enumerations
Enumerator
a
c
d
f
g
h
i
k
n
p
r
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
f
g
i
m
o
q
r
s
t
u
v
Functions
c
d
g
i
m
o
r
s
t
Typedefs
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
Loading...
Searching...
No Matches
common
base
src
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
12
class
BASE_EXPORT
Random
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
};
17
struct
Info
{
…
};
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
};
12
class
BASE_EXPORT
Random
{
…
};
37
basedef.h
Base type definitions for the engine.
Random
Definition
random.h:13
BASE_EXPORT
#define BASE_EXPORT
Definition
basedef.h:24
Random::Info
Definition
random.h:17
Generated by
1.10.0