Soar Kernel  9.3.2 08-06-12
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions | Variables
soar_rand.cpp File Reference
#include <portability.h>
#include "soar_rand.h"

Go to the source code of this file.

Functions

double SoarRand ()
double SoarRand (const double &max)
uint32_t SoarRandInt ()
uint32_t SoarRandInt (const uint32_t &max)
void SoarSeedRNG ()
void SoarSeedRNG (const uint32_t seed)

Variables

static MTRand gSoarRand

Function Documentation

double SoarRand ( )
double SoarRand ( const double &  max)

Definition at line 12 of file soar_rand.cpp.

References MTRand::rand().

{ return gSoarRand.rand(max); }
uint32_t SoarRandInt ( )
uint32_t SoarRandInt ( const uint32_t max)

Definition at line 20 of file soar_rand.cpp.

References MTRand::randInt().

{ return gSoarRand.randInt(max); }
void SoarSeedRNG ( )

Definition at line 25 of file soar_rand.cpp.

References MTRand::seed().

Referenced by predict_srand_restore_snapshot().

void SoarSeedRNG ( const uint32_t  seed)

Definition at line 29 of file soar_rand.cpp.

References MTRand::seed().

{ gSoarRand.seed(seed); }

Variable Documentation

MTRand gSoarRand
static

Definition at line 5 of file soar_rand.cpp.