Random class.
More...
#include <Random.hpp>
|
| | Random ()=default |
| | Construct a new Random object, default constructor. More...
|
| |
| short | generate (short min, short max) |
| | Generate a random short using the std::default_random_engine & uniform_int_distribution. More...
|
| |
| int | generate (int min, int max) |
| | Generate a random int using the std::default_random_engine & uniform_int_distribution. More...
|
| |
| long | generate (long min, long max) |
| | Generate a random long using the std::default_random_engine & uniform_int_distribution. More...
|
| |
| std::size_t | generateSizeT (std::size_t min, std::size_t max) |
| | Generate a random std::size_t using the std::default_random_engine & uniform_int_distribution. More...
|
| |
| double | generate (double min, double max) |
| | Generate a random double using the std::default_random_engine & uniform_real_distribution. More...
|
| |
| float | generate (float min, float max) |
| | Generate a random float using the std::default_random_engine & uniform_real_distribution. More...
|
| |
◆ Random()
| raylib::Random::Random |
( |
| ) |
|
|
default |
Construct a new Random object, default constructor.
◆ generate() [1/5]
| double raylib::Random::generate |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
Generate a random double using the std::default_random_engine & uniform_real_distribution.
- Parameters
-
| min | the minimum value |
| max | the maximum value |
- Returns
- a random double number
◆ generate() [2/5]
| float raylib::Random::generate |
( |
float |
min, |
|
|
float |
max |
|
) |
| |
Generate a random float using the std::default_random_engine & uniform_real_distribution.
- Parameters
-
| min | the minimum value |
| max | the maximum value |
- Returns
- a random float number
◆ generate() [3/5]
| int raylib::Random::generate |
( |
int |
min, |
|
|
int |
max |
|
) |
| |
Generate a random int using the std::default_random_engine & uniform_int_distribution.
- Parameters
-
| min | the minimum value |
| max | the maximum value |
- Returns
- a random int number
◆ generate() [4/5]
| long raylib::Random::generate |
( |
long |
min, |
|
|
long |
max |
|
) |
| |
Generate a random long using the std::default_random_engine & uniform_int_distribution.
- Parameters
-
| min | the minimum value |
| max | the maximum value |
- Returns
- a random long number
◆ generate() [5/5]
| short raylib::Random::generate |
( |
short |
min, |
|
|
short |
max |
|
) |
| |
Generate a random short using the std::default_random_engine & uniform_int_distribution.
- Parameters
-
| min | the minimum value |
| max | the maximum value |
- Returns
- a random short number
◆ generateSizeT()
| std::size_t raylib::Random::generateSizeT |
( |
std::size_t |
min, |
|
|
std::size_t |
max |
|
) |
| |
Generate a random std::size_t using the std::default_random_engine & uniform_int_distribution.
- Parameters
-
| min | the minimum value |
| max | the maximum value |
- Returns
- a random std::size_t number
The documentation for this class was generated from the following files: