#include <randomint.hpp>
Public Member Functions | |
randomint (int low, int high) | |
int | operator() () const |
Generate the next random number generator. |
Definition at line 17 of file randomint.hpp.
randomint::randomint | ( | int | low, | |
int | high | |||
) | [inline] |
Construct a random-number generator to produce numbers in the range [low
, high
]. If low
> high
the values are reversed. This class uses the std::rand() function, so you call std::srand() to change the seed.
Definition at line 33 of file randomint.hpp.