doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes | List of all members
idRandom2 Class Reference

#include <Random.h>

Public Member Functions

 idRandom2 (unsigned long seed=0)
 
void SetSeed (unsigned long seed)
 
unsigned long GetSeed (void) const
 
int RandomInt (void)
 
int RandomInt (int max)
 
float RandomFloat (void)
 
float CRandomFloat (void)
 

Static Public Attributes

static const int MAX_RAND = 0x7fff
 

Private Attributes

unsigned long seed
 

Static Private Attributes

static const unsigned long IEEE_ONE = 0x3f800000
 
static const unsigned long IEEE_MASK = 0x007fffff
 

Detailed Description

Definition at line 99 of file Random.h.

Constructor & Destructor Documentation

ID_INLINE idRandom2::idRandom2 ( unsigned long  seed = 0)

Definition at line 120 of file Random.h.

Member Function Documentation

ID_INLINE float idRandom2::CRandomFloat ( void  )

Definition at line 151 of file Random.h.

ID_INLINE unsigned long idRandom2::GetSeed ( void  ) const

Definition at line 128 of file Random.h.

ID_INLINE float idRandom2::RandomFloat ( void  )

Definition at line 144 of file Random.h.

ID_INLINE int idRandom2::RandomInt ( void  )

Definition at line 132 of file Random.h.

ID_INLINE int idRandom2::RandomInt ( int  max)

Definition at line 137 of file Random.h.

ID_INLINE void idRandom2::SetSeed ( unsigned long  seed)

Definition at line 124 of file Random.h.

Member Data Documentation

const unsigned long idRandom2::IEEE_MASK = 0x007fffff
staticprivate

Definition at line 117 of file Random.h.

const unsigned long idRandom2::IEEE_ONE = 0x3f800000
staticprivate

Definition at line 116 of file Random.h.

const int idRandom2::MAX_RAND = 0x7fff
static

Definition at line 111 of file Random.h.

unsigned long idRandom2::seed
private

Definition at line 114 of file Random.h.


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