Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
Random3Class Class Reference

#include <RANDOM.H>

Public Types

enum  { SIGNIFICANT_BITS =32 }
 

Public Member Functions

 Random3Class (unsigned seed1=0, unsigned seed2=0)
 
 operator int (void)
 
int operator() (void)
 
int operator() (int minval, int maxval)
 

Protected Attributes

int Seed
 
int Index
 

Static Protected Attributes

static int Mix1 [20]
 
static int Mix2 [20]
 

Detailed Description

Definition at line 135 of file RANDOM.H.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SIGNIFICANT_BITS 

Definition at line 143 of file RANDOM.H.

Constructor & Destructor Documentation

◆ Random3Class()

Random3Class::Random3Class ( unsigned seed1 = 0,
unsigned seed2 = 0 )

Definition at line 277 of file random.cpp.

Member Function Documentation

◆ operator int()

Random3Class::operator int ( void )
inline

Definition at line 139 of file RANDOM.H.

◆ operator()() [1/2]

int Random3Class::operator() ( int minval,
int maxval )

Definition at line 334 of file random.cpp.

◆ operator()() [2/2]

int Random3Class::operator() ( void )

Definition at line 299 of file random.cpp.

Member Data Documentation

◆ Index

int Random3Class::Index
protected

Definition at line 151 of file RANDOM.H.

◆ Mix1

int Random3Class::Mix1
staticprotected
Initial value:
= {
0x0baa96887, 0x01e17d32c, 0x003bcdc3c, 0x00f33d1b2,
0x076a6491d, 0x0c570d85d, 0x0e382b1e3, 0x078db4362,
0x07439a9d4, 0x09cea8ac5, 0x089537c5c, 0x02588f55d,
0x0415b5e1d, 0x0216e3d95, 0x085c662e7, 0x05e8ab368,
0x03ea5cc8c, 0x0d26a0f74, 0x0f3a9222b, 0x048aad7e4
}

Definition at line 236 of file RANDOM.H.

◆ Mix2

int Random3Class::Mix2
staticprotected
Initial value:
= {
0x04b0f3b58, 0x0e874f0c3, 0x06955c5a6, 0x055a7ca46,
0x04d9a9d86, 0x0fe28a195, 0x0b1ca7865, 0x06b235751,
0x09a997a61, 0x0aa6e95c8, 0x0aaa98ee1, 0x05af9154c,
0x0fc8e2263, 0x0390f5e8c, 0x058ffd802, 0x0ac0a5eba,
0x0ac4874f6, 0x0a9df0913, 0x086be4c74, 0x0ed2c123b
}

Definition at line 244 of file RANDOM.H.

◆ Seed

int Random3Class::Seed
protected

Definition at line 150 of file RANDOM.H.


The documentation for this class was generated from the following files: