MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
helper::GeneratorBase Struct Reference

Base class for generators. More...

#include <random.h>

Inheritance diagram for helper::GeneratorBase:
[legend]

Static Public Member Functions

static int get_random_int (int range)
 Static method that generates random number. More...
 

Detailed Description

Base class for generators.

Generator must provide only following function:

static char generate()

and doesn't need to inherit from GeneratorBase.

Member Function Documentation

◆ get_random_int()

static int helper::GeneratorBase::get_random_int ( int  range)
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).


The documentation for this struct was generated from the following file: