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++.
|
Go to the source code of this file.
Namespaces | |
namespace | asw |
namespace | asw::random |
namespace | asw::random::anonymous_namespace{random.cpp} |
Functions | |
std::mt19937 | asw::random::anonymous_namespace{random.cpp}::rng (rd()) |
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. | |
Variables | |
std::random_device | asw::random::anonymous_namespace{random.cpp}::rd |