The IRandomGenerator interface represents a random number generator that can be received e. g. from an ExecutionContext.
More...
#include <scratchcpp/irandomgenerator.h>
The IRandomGenerator interface represents a random number generator that can be received e. g. from an ExecutionContext.
◆ ~IRandomGenerator()
| virtual libscratchcpp::IRandomGenerator::~IRandomGenerator |
( |
| ) |
|
|
inlinevirtual |
◆ randint()
| virtual long libscratchcpp::IRandomGenerator::randint |
( |
long | start, |
|
|
long | end ) const |
|
pure virtual |
Returns a random integer in the given range (inclusive).
◆ randintDouble()
| virtual double libscratchcpp::IRandomGenerator::randintDouble |
( |
double | start, |
|
|
double | end ) const |
|
pure virtual |
Returns a random double in the given range (inclusive).
◆ randintExcept()
| virtual long libscratchcpp::IRandomGenerator::randintExcept |
( |
long | start, |
|
|
long | end, |
|
|
long | except ) const |
|
pure virtual |
Returns a random integer in the given range (inclusive) except the given integer.
The documentation for this class was generated from the following file: