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

SCA_RandomNumberGenerator.cpp File Reference

#include <limits.h>
#include "SCA_RandomNumberGenerator.h"

Go to the source code of this file.

Defines

#define N   624
 Generate random numbers that can be used by other components. More...

#define M   397
#define MATRIX_A   0x9908b0df
#define UPPER_MASK   0x80000000
#define LOWER_MASK   0x7fffffff
#define TEMPERING_MASK_B   0x9d2c5680
#define TEMPERING_MASK_C   0xefc60000
#define TEMPERING_SHIFT_U(y)    (y >> 11)
#define TEMPERING_SHIFT_S(y)    (y << 7)
#define TEMPERING_SHIFT_T(y)    (y << 15)
#define TEMPERING_SHIFT_L(y)    (y >> 18)


Define Documentation

#define LOWER_MASK   0x7fffffff
 

Definition at line 45 of file SCA_RandomNumberGenerator.cpp.

#define M   397
 

Definition at line 42 of file SCA_RandomNumberGenerator.cpp.

#define MATRIX_A   0x9908b0df
 

Definition at line 43 of file SCA_RandomNumberGenerator.cpp.

#define N   624
 

Generate random numbers that can be used by other components.

We convert to different types/distributions elsewhere. This just delivers a clean, random bitvector.

Version:

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

Definition at line 41 of file SCA_RandomNumberGenerator.cpp.

#define TEMPERING_MASK_B   0x9d2c5680
 

Definition at line 48 of file SCA_RandomNumberGenerator.cpp.

#define TEMPERING_MASK_C   0xefc60000
 

Definition at line 49 of file SCA_RandomNumberGenerator.cpp.

#define TEMPERING_SHIFT_L( y )   (y >> 18)
 

Definition at line 53 of file SCA_RandomNumberGenerator.cpp.

Referenced by SCA_RandomNumberGenerator::Draw().

#define TEMPERING_SHIFT_S( y )   (y << 7)
 

Definition at line 51 of file SCA_RandomNumberGenerator.cpp.

Referenced by SCA_RandomNumberGenerator::Draw().

#define TEMPERING_SHIFT_T( y )   (y << 15)
 

Definition at line 52 of file SCA_RandomNumberGenerator.cpp.

Referenced by SCA_RandomNumberGenerator::Draw().

#define TEMPERING_SHIFT_U( y )   (y >> 11)
 

Definition at line 50 of file SCA_RandomNumberGenerator.cpp.

Referenced by SCA_RandomNumberGenerator::Draw().

#define UPPER_MASK   0x80000000
 

Definition at line 44 of file SCA_RandomNumberGenerator.cpp.


Generated at Thu Feb 1 13:03:26 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000