![]() |
MySQL 9.3.0
Source Code Documentation
|
Base class for generators. More...
#include <random.h>
Static Public Member Functions | |
static int | get_random_int (int range) |
Static method that generates random number. More... | |
Base class for generators.
Generator must provide only following function:
static char generate()
and doesn't need to inherit from GeneratorBase
.
|
inlinestatic |
Static method that generates random number.
This method was introduced for easier changing the algorithm in future. range
argument decides about the generated numbers range [0, range).