OW_NAMESPACE::RandomNumber Class Reference

#include <OW_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 45 of file OW_RandomNumber.hpp.

Constructor & Destructor Documentation

OW_NAMESPACE::RandomNumber::RandomNumber Int32  lowVal = 0,
Int32  highVal = RAND_MAX

Definition at line 67 of file OW_RandomNumber.cpp.

References OW_NAMESPACE::callOnce(), OW_NAMESPACE::guard, initRandomness(), m_highVal, and m_lowVal.

Member Function Documentation

Int32 OW_NAMESPACE::RandomNumber::getNextNumber  ) 

Definition at line 126 of file OW_RandomNumber.cpp.

References OW_NAMESPACE::g_guard, m_highVal, and m_lowVal.

void OW_NAMESPACE::RandomNumber::initRandomness  )  [static]

Definition at line 80 of file OW_RandomNumber.cpp.

References OW_NAMESPACE::seed.

Referenced by RandomNumber().

void OW_NAMESPACE::RandomNumber::saveRandomState  )  [static]

Definition at line 115 of file OW_RandomNumber.cpp.

Member Data Documentation

Int32 OW_NAMESPACE::RandomNumber::m_highVal [private]

Definition at line 60 of file OW_RandomNumber.hpp.

Referenced by getNextNumber(), and RandomNumber().

Int32 OW_NAMESPACE::RandomNumber::m_lowVal [private]

Definition at line 59 of file OW_RandomNumber.hpp.

Referenced by getNextNumber(), and RandomNumber().

The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:14:10 2006 for openwbem by  doxygen 1.4.6