# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLMISC::CRandom Class Reference

A simple, os-independant random generator. More...

#include <random.h>

List of all members.

Public Types

enum  { RandMax = 0x7fff }

Public Methods

 CRandom ()
sint32 rand ()
void srand (sint32 seed)
float frand (float mod)

Private Attributes

sint32 _Seed


Detailed Description

A simple, os-independant random generator.

Author:
Nicolas Vizerie , Nevrax France
Date:
2002

Definition at line 38 of file random.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
RandMax 

Definition at line 42 of file random.h.


Constructor & Destructor Documentation

NLMISC::CRandom::CRandom  
 

Definition at line 32 of file random.cpp.


Member Function Documentation

float NLMISC::CRandom::frand float    mod
 

Definition at line 50 of file random.cpp.

References r, rand, and RandMax.

sint32 NLMISC::CRandom::rand  
 

Definition at line 38 of file random.cpp.

References _Seed, and RandMax.

Referenced by frand.

void NLMISC::CRandom::srand sint32    seed
 

Definition at line 44 of file random.cpp.

References _Seed.


Member Data Documentation

sint32 NLMISC::CRandom::_Seed [private]
 

Definition at line 53 of file random.h.

Referenced by rand, and srand.


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