Randomizer is an utility class for generating pseudo-random numbers. More...
#include <Randomizer.hpp>
Static Public Member Functions | |
static void | SetSeed (unsigned int Seed) |
Set the seed for the generator. More... | |
static unsigned int | GetSeed () |
Get the seed used to generate random numbers the generator. More... | |
static float | Random (float Begin, float End) |
Get a random float number in a given range. More... | |
static int | Random (int Begin, int End) |
Get a random integer number in a given range. More... | |
Randomizer is an utility class for generating pseudo-random numbers.
Definition at line 40 of file Randomizer.hpp.
|
static |
Get the seed used to generate random numbers the generator.
Definition at line 67 of file Randomizer.cpp.
|
static |
Get a random float number in a given range.
Definition at line 76 of file Randomizer.cpp.
|
static |
Get a random integer number in a given range.
Definition at line 88 of file Randomizer.cpp.
|
static |
Set the seed for the generator.
Using a known seed allows you to reproduce the same sequence of random number
Seed | : Number to use as the seed |
Using a known seed allows you to reproduce the same sequence of random number
Definition at line 57 of file Randomizer.cpp.