#include <random.h>
Nevrax France
Definition at line 38 of file random.h.
Public Types | |
| enum | { RandMax = 0x7fff } |
Public Member Functions | |
| CRandom () | |
| float | frand (double mod=1.0f) |
| float | frandPlusMinus (double mod=1.0) |
| sint32 | rand (uint16 mod) |
| sint32 | rand () |
| sint32 | randPlusMinus (uint16 mod) |
| void | srand (sint32 seed) |
Private Attributes | |
| sint32 | _Seed |
|
|
Definition at line 42 of file random.h.
00042 { RandMax = 0x7fff };
|
|
|
Definition at line 64 of file random.h.
00064 : _Seed(1) 00065 { 00066 } |
|
|
Definition at line 90 of file random.h. References r, rand(), and RandMax. Referenced by frandPlusMinus().
|
|
|
Definition at line 98 of file random.h. References frand().
00099 {
00100 return frand(2*mod)-(float)mod;
00101 }
|
|
|
Definition at line 76 of file random.h. References rand(), RandMax, sint32, and uint16.
|
|
|
Definition at line 70 of file random.h. References _Seed, RandMax, and sint32. Referenced by NL3D::CZoneLighter::attenuation(), frand(), rand(), and randPlusMinus().
|
|
|
Definition at line 83 of file random.h. References rand(), RandMax, sint32, and uint16.
|
|
|
Definition at line 104 of file random.h.
00105 {
00106 _Seed = seed;
00107 }
|
|
|
|
1.3.6