A class that generates random numbers. More...
#include <libppbase/base/Random.h>
Public Member Functions | |
Random () | |
Constructor. | |
unsigned | get (unsigned min, unsigned max) |
Gets a random number. | |
String | getString (size_t len) |
Gets a random string consisting of characters 0-9, a-z and A-Z. |
A class that generates random numbers.
unsigned base::Random::get | ( | unsigned | min, | |
unsigned | max | |||
) |
Gets a random number.
min | minimum value (inclusive) | |
max | maximum value (exclusive) |
String base::Random::getString | ( | size_t | len | ) |
Gets a random string consisting of characters 0-9, a-z and A-Z.
len | lenght of the random string |