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

#include <RANDOM.H>

Public Types

enum  { SIGNIFICANT_BITS =15 }
 

Public Member Functions

 RandomClass (unsigned seed=0)
 
 operator int (void)
 
int operator() (void)
 
int operator() (int minval, int maxval)
 

Protected Types

enum  { MULT_CONSTANT =0x41C64E6D , ADD_CONSTANT =0x00003039 , THROW_AWAY_BITS =10 }
 

Protected Attributes

unsigned long Seed
 

Detailed Description

Definition at line 54 of file RANDOM.H.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SIGNIFICANT_BITS 

Definition at line 62 of file RANDOM.H.

◆ anonymous enum

anonymous enum
protected
Enumerator
MULT_CONSTANT 
ADD_CONSTANT 
THROW_AWAY_BITS 

Definition at line 73 of file RANDOM.H.

Constructor & Destructor Documentation

◆ RandomClass()

RandomClass::RandomClass ( unsigned seed = 0)

Definition at line 90 of file random.cpp.

Member Function Documentation

◆ operator int()

RandomClass::operator int ( void )
inline

Definition at line 58 of file RANDOM.H.

◆ operator()() [1/2]

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

Definition at line 146 of file random.cpp.

◆ operator()() [2/2]

int RandomClass::operator() ( void )

Definition at line 112 of file random.cpp.

Member Data Documentation

◆ Seed

unsigned long RandomClass::Seed
protected

Definition at line 67 of file RANDOM.H.


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