handles pseudo-random tasks
More...
#include <vector>
#include <random>
Go to the source code of this file.
handles pseudo-random tasks
- Author
- Cameron Bruce
- Copyright
- 2023 Locked & Coded
◆ randomInt()
| int rand_utils::randomInt |
( |
int |
min, |
|
|
int |
max |
|
) |
| |
retrieves a pseudo-random integer
- Parameters
-
| min | lower bound |
| max | upper bound |
- Returns
- the random integer
◆ randomSizeT() [1/2]
| size_t rand_utils::randomSizeT |
( |
size_t |
min, |
|
|
size_t |
max |
|
) |
| |
retrieves a pseudo-random size_t
- Parameters
-
| min | lower bound |
| max | upper bound |
- Returns
- the random size_t
◆ randomSizeT() [2/2]
| size_t rand_utils::randomSizeT |
( |
size_t |
max | ) |
|
retrieves a pseudo-random size_t
- Parameters
-
- Returns
- the random size_t