struct
#include <Spore ModAPI/Spore/MathUtils.h>
RandomNumberGenerator
Constructors, destructors, conversion operators
-
RandomNumberGenerator(int32_
t seed = -1)
Public functions
- auto RandomInt(int range) -> int
- Generates a random integer between 0 and the given parameter, excluded.
- auto RandomFloat() -> float
- Generates a random float number between 0.0 and 1.0.