This class implements a thread-safe, cross-platform singleton random number generator. More...
#include <globalsearch/random.h>
Public Member Functions | |
| double | getRandomDouble () |
| unsigned int | getRandomUInt () |
Static Public Member Functions | |
| static GSRandom * | instance () |
Protected Member Functions | |
| GSRandom () | |
| Constructor. | |
| GSRandom (const GSRandom &) | |
| Disabled copy constructor. | |
| GSRandom & | operator= (const GSRandom &) |
| Disabled assignment operator. | |
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.
Definition at line 32 of file random.h.
| double GlobalSearch::GSRandom::getRandomDouble | ( | ) |
Definition at line 67 of file random.cpp.
| unsigned int GlobalSearch::GSRandom::getRandomUInt | ( | ) |
Definition at line 76 of file random.cpp.
| GSRandom * GlobalSearch::GSRandom::instance | ( | ) | [static] |
Definition at line 50 of file random.cpp.
References GSRandom().
1.6.3