Math::RandomNumberGenerator struct

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.

Public variables

int32_t seed

Function documentation

int Math::RandomNumberGenerator::RandomInt(int range)

Generates a random integer between 0 and the given parameter, excluded.

Parameters
range The maximum value that can be generated.