Interface for generating random numbers.
More...
#include <IRandomizer.h>
Interface for generating random numbers.
Definition at line 14 of file IRandomizer.h.
◆ frand()
virtual f32 irr::IRandomizer::frand |
( |
| ) |
const |
|
pure virtual |
generates a pseudo random number in the range 0..1
◆ rand()
virtual s32 irr::IRandomizer::rand |
( |
| ) |
const |
|
pure virtual |
generates a pseudo random number in the range 0..randMax()
◆ randMax()
virtual s32 irr::IRandomizer::randMax |
( |
| ) |
const |
|
pure virtual |
get maxmimum number generated by rand()
◆ reset()
virtual void irr::IRandomizer::reset |
( |
s32 |
value = 0x0f0f0f0f | ) |
|
|
pure virtual |
resets the randomizer
- Parameters
-
value | Initialization value (seed) |
The documentation for this class was generated from the following file: