|
Pacman Torben Petré
|
#include <Random.h>
Public Member Functions | |
| Random (Random &other)=delete | |
| void | operator= (const Random &)=delete |
| float | getFloat () |
| Function that returns a random float value between 0 and 1. | |
| int | getInt (int min, int max) |
| Helper function that returns a random value between the given min and max. Including the max. | |
Static Public Member Functions | |
| static Random & | getInstance () |
| Returns an instance of the Random class. | |
Singleton wrapper for the Mersenne Twister random number engine.
|
delete |
Singletons should not be cloneable or assignable.
|
nodiscard |
Function that returns a random float value between 0 and 1.
|
staticnodiscard |
|
nodiscard |
Helper function that returns a random value between the given min and max. Including the max.
| min | |
| max |
|
delete |