Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

random.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _RNGS_
#define nextInt(x)   nextInteger( (x),__FILE__, __LINE__ )

Functions

double Random (void)
int nextInteger (int range, const char *file, int line)
void PlantSeeds (long x)
void GetSeed (long *x)
void PutSeed (long x)
void SelectStream (int index)
void TestRandom (void)


Define Documentation

#define _RNGS_
 

Definition at line 10 of file random.h.

#define nextInt  )     nextInteger( (x),__FILE__, __LINE__ )
 

Definition at line 13 of file random.h.

Referenced by SFCaveGame::addBlock(), GatesGame::addGate(), chooseRandomFile(), GatesGame::init(), Terrain::initTerrain(), Terrain::setPoint(), FlyTerrain::setPoint(), and GatesGame::update().


Function Documentation

void GetSeed long *  x  ) 
 

Definition at line 129 of file random.cpp.

References seed.

int nextInteger int  range,
const char *  file,
int  line
 

Definition at line 103 of file random.cpp.

References Random(), and val.

void PlantSeeds long  x  ) 
 

Definition at line 71 of file random.cpp.

References A256, initialized, MODULUS, PutSeed(), s, seed, SelectStream(), and STREAMS.

void PutSeed long  x  ) 
 

Definition at line 101 of file random.cpp.

References MODULUS, NULL, printf, and seed.

double Random void   ) 
 

Definition at line 51 of file random.cpp.

References MODULUS, MULTIPLIER, seed, and t.

void SelectStream int  index  ) 
 

Definition at line 140 of file random.cpp.

References DEFAULT, initialized, PlantSeeds(), and STREAMS.

void TestRandom void   ) 
 

Definition at line 153 of file random.cpp.

References A256, CHECK, GetSeed(), i, PlantSeeds(), printf, PutSeed(), Random(), SelectStream(), u, and Opie::MM::x.


Generated on Sat Nov 5 16:57:25 2005 for OPIE by  doxygen 1.4.2