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++.
Loading...
Searching...
No Matches
random.h File Reference

Random module for the ASW library. More...

This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

Random module for the ASW library.

Author
Allan Legemaate (alege.nosp@m.maat.nosp@m.e@gma.nosp@m.il.c.nosp@m.om)
Date
2025-03-24

Definition in file random.h.