RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
uni_rand.cpp File Reference
#include "uni_rand.h"

Go to the source code of this file.

Macros

#define MULTIPLIER   16807
 
#define MODULUS   2147483647
 
#define MOD_RECIP   (1.0 / MODULUS)
 
#define SCHRAGE_QUOTIENT   127773
 
#define SCHRAGE_REMAINDER   2836
 
#define MASK   123459876
 

Functions

float UniformRandom (long *seed)
 
double DoubleUniformRandom (long *seed)
 

Macro Definition Documentation

#define MASK   123459876

Definition at line 16 of file uni_rand.cpp.

#define MOD_RECIP   (1.0 / MODULUS)

Definition at line 8 of file uni_rand.cpp.

#define MODULUS   2147483647

Definition at line 7 of file uni_rand.cpp.

#define MULTIPLIER   16807

Definition at line 6 of file uni_rand.cpp.

#define SCHRAGE_QUOTIENT   127773

Definition at line 10 of file uni_rand.cpp.

#define SCHRAGE_REMAINDER   2836

Definition at line 13 of file uni_rand.cpp.

Function Documentation

double DoubleUniformRandom(long * seed)

Definition at line 37 of file uni_rand.cpp.

float UniformRandom(long * seed)

Definition at line 19 of file uni_rand.cpp.