annotate Random.h @ 192:1f1de8a1e988

25.12.12
author Ritor1
date Tue, 25 Dec 2012 22:30:07 +0600
parents 8b8875f5b359
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4 /* 304 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 struct Random
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 //----- (004BE365) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 inline Random()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 Initialize(0x5CCE1E47u);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 min = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 range = 99;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 void SetRange(int min, int max);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 double GetRandom();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 int GetInRange();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 void Initialize(int seed);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 double field_0[5];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 int min;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 int range;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 extern struct Random *pRnd; // idb