blocxx
Public Member Functions | Static Public Member Functions | Private Attributes

BLOCXX_NAMESPACE::RandomNumber Class Reference

#include <RandomNumber.hpp>

List of all members.

Public Member Functions

 RandomNumber (Int32 lowVal=0, Int32 highVal=RAND_MAX)
Int32 getNextNumber ()

Static Public Member Functions

static void initRandomness ()
static void saveRandomState ()

Private Attributes

Int32 m_lowVal
Int32 m_highVal

Detailed Description

Definition at line 48 of file RandomNumber.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::RandomNumber::RandomNumber ( Int32  lowVal = 0,
Int32  highVal = RAND_MAX 
)

Definition at line 72 of file RandomNumber.cpp.

References BLOCXX_NAMESPACE::callOnce(), and BLOCXX_NAMESPACE::cpp::guard.


Member Function Documentation

Int32 BLOCXX_NAMESPACE::RandomNumber::getNextNumber ( )

Definition at line 131 of file RandomNumber.cpp.

References m_highVal, and m_lowVal.

void BLOCXX_NAMESPACE::RandomNumber::initRandomness ( ) [static]

Definition at line 85 of file RandomNumber.cpp.

References BLOCXX_NAMESPACE::cpp::seed.

void BLOCXX_NAMESPACE::RandomNumber::saveRandomState ( ) [static]

Definition at line 120 of file RandomNumber.cpp.


Member Data Documentation

Definition at line 63 of file RandomNumber.hpp.

Referenced by getNextNumber().

Definition at line 62 of file RandomNumber.hpp.

Referenced by getNextNumber().


The documentation for this class was generated from the following files: