cds
2.3.2
|
Turbo-pascal random level generator. More...
#include <cds/intrusive/details/skip_list_base.h>
Public Member Functions | |
turbo () | |
Initializes the generator instance. | |
unsigned int | operator() () |
Main generator function. | |
Static Public Attributes | |
static unsigned int const | c_nUpperBound = MaxHeight |
The upper bound of generator's return value. The generator produces random number in range [0..c_nUpperBound) | |
Turbo-pascal random level generator.
This uses a cheap pseudo-random function that was used in Turbo Pascal.
The random generator should return numbers from range [0..31].
From Doug Lea's ConcurrentSkipListMap.java.