ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
|
Random module for the ASW library. More...
Go to the source code of this file.
Namespaces | |
namespace | asw |
namespace | asw::random |
Functions | |
int | asw::random::random (int max) |
Generate a random integer between 0 and max. | |
int | asw::random::between (int min, int max) |
Generate a random integer between min and max. | |
float | asw::random::random (float max) |
Generate a random float between 0 and max. | |
float | asw::random::between (float min, float max) |
Generate a random float between min and max. | |
bool | asw::random::chance () |
Generate a random boolean. | |
bool | asw::random::chance (float chance) |
Generate a random boolean with a given chance of being true. | |
Random module for the ASW library.
Definition in file random.h.