Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SCA_RandomNumberGenerator Class Reference

Generate random numbers that can be used by other components. More...

#include <SCA_RandomNumberGenerator.h>

List of all members.

Public Methods

 SCA_RandomNumberGenerator (long seed)
 ~SCA_RandomNumberGenerator ()
unsigned long Draw ()
 This is the important part: copied verbatim :). More...

float DrawFloat ()
long GetSeed ()
void SetSeed (long newseed)


Detailed Description

Generate random numbers that can be used by other components.

Each generator needs its own generator, so that the seed can be set on a per-generator basis.

Version:

Id:
SCA_RandomNumberGenerator.h,v 1.1 2000/12/06 20:22:33 coockie Exp

Definition at line 13 of file SCA_RandomNumberGenerator.h.


Constructor & Destructor Documentation

SCA_RandomNumberGenerator::SCA_RandomNumberGenerator ( long seed )
 

Definition at line 55 of file SCA_RandomNumberGenerator.cpp.

SCA_RandomNumberGenerator::~SCA_RandomNumberGenerator ( )
 

Definition at line 61 of file SCA_RandomNumberGenerator.cpp.


Member Function Documentation

unsigned long SCA_RandomNumberGenerator::Draw ( )
 

This is the important part: copied verbatim :).

Definition at line 85 of file SCA_RandomNumberGenerator.cpp.

Referenced by DrawFloat(), SCA_RandomSensor::Evaluate(), and SCA_RandomActuator::Update().

float SCA_RandomNumberGenerator::DrawFloat ( )
 

Definition at line 121 of file SCA_RandomNumberGenerator.cpp.

Referenced by SCA_RandomActuator::Update().

long SCA_RandomNumberGenerator::GetSeed ( )
 

Definition at line 75 of file SCA_RandomNumberGenerator.cpp.

void SCA_RandomNumberGenerator::SetSeed ( long newseed )
 

Definition at line 76 of file SCA_RandomNumberGenerator.cpp.


The documentation for this class was generated from the following files:
Generated at Thu Feb 1 13:03:57 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000