blocxx
BLOCXX_NAMESPACE::RandomNumber Class Reference

#include <RandomNumber.hpp>

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

◆ RandomNumber()

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

Definition at line 71 of file RandomNumber.cpp.

References BLOCXX_NAMESPACE::callOnce(), initRandomness(), m_highVal, and m_lowVal.

Member Function Documentation

◆ getNextNumber()

Int32 BLOCXX_NAMESPACE::RandomNumber::getNextNumber ( )

Definition at line 130 of file RandomNumber.cpp.

References m_highVal, and m_lowVal.

◆ initRandomness()

void BLOCXX_NAMESPACE::RandomNumber::initRandomness ( )
static

Definition at line 84 of file RandomNumber.cpp.

Referenced by RandomNumber().

◆ saveRandomState()

void BLOCXX_NAMESPACE::RandomNumber::saveRandomState ( )
static

Definition at line 119 of file RandomNumber.cpp.

Member Data Documentation

◆ m_highVal

Int32 BLOCXX_NAMESPACE::RandomNumber::m_highVal
private

Definition at line 63 of file RandomNumber.hpp.

Referenced by getNextNumber(), and RandomNumber().

◆ m_lowVal

Int32 BLOCXX_NAMESPACE::RandomNumber::m_lowVal
private

Definition at line 62 of file RandomNumber.hpp.

Referenced by getNextNumber(), and RandomNumber().


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