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 | List of all members
idRandom Class Reference

#include <Random.h>

Public Member Functions

 idRandom (int seed=0)
 
void SetSeed (int seed)
 
int 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

int seed
 

Detailed Description

Definition at line 40 of file Random.h.

Constructor & Destructor Documentation

ID_INLINE idRandom::idRandom ( int  seed = 0)

Definition at line 58 of file Random.h.

Member Function Documentation

ID_INLINE float idRandom::CRandomFloat ( void  )

Definition at line 86 of file Random.h.

ID_INLINE int idRandom::GetSeed ( void  ) const

Definition at line 66 of file Random.h.

ID_INLINE float idRandom::RandomFloat ( void  )

Definition at line 82 of file Random.h.

ID_INLINE int idRandom::RandomInt ( void  )

Definition at line 70 of file Random.h.

ID_INLINE int idRandom::RandomInt ( int  max)

Definition at line 75 of file Random.h.

ID_INLINE void idRandom::SetSeed ( int  seed)

Definition at line 62 of file Random.h.

Member Data Documentation

const int idRandom::MAX_RAND = 0x7fff
static

Definition at line 52 of file Random.h.

int idRandom::seed
private

Definition at line 55 of file Random.h.


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