GlobalSearch::GSRandom Class Reference

This class implements a thread-safe, cross-platform singleton random number generator. More...

#include <globalsearch/random.h>

List of all members.

Public Member Functions

double getRandomDouble ()
unsigned int getRandomUInt ()

Static Public Member Functions

static GSRandominstance ()

Protected Member Functions

 GSRandom ()
 Constructor.
 GSRandom (const GSRandom &)
 Disabled copy constructor.
GSRandomoperator= (const GSRandom &)
 Disabled assignment operator.

Detailed Description

This class implements a thread-safe, cross-platform singleton random number generator.

Direct use of this class is discouraged. Rather, use the RANDDOUBLE(), etc macros in globalsearch/macros.h.

Author:
David C. Lonie

Definition at line 32 of file random.h.


Member Function Documentation

double GlobalSearch::GSRandom::getRandomDouble (  ) 
Returns:
a random floating point number between zero and one

Definition at line 67 of file random.cpp.

unsigned int GlobalSearch::GSRandom::getRandomUInt (  ) 
Returns:
a random unsigned integer

Definition at line 76 of file random.cpp.

GSRandom * GlobalSearch::GSRandom::instance (  )  [static]
Returns:
the global GSRandom instance

Definition at line 50 of file random.cpp.

References GSRandom().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Enumerator
Generated on Mon Jul 16 14:40:04 2012 for GlobalSearch by  doxygen 1.6.3