Random number generator.
More...
#include <Random.hpp>
|
template<typename T > |
static T | uniform (T min, T max) |
| Generate a random number between min and max.
|
|
static void | setSeed (size_t seed) |
| Set the seed for the random number generator.
|
|
◆ setSeed()
void util::Random::setSeed |
( |
size_t | seed | ) |
|
|
static |
Set the seed for the random number generator.
- Parameters
-
◆ uniform()
template<typename T >
static T util::Random::uniform |
( |
T | min, |
|
|
T | max ) |
|
inlinestatic |
Generate a random number between min and max.
- Template Parameters
-
T | Type of the number to generate |
- Parameters
-
min | Minimum value |
max | Maximum value |
- Returns
- Random number between min and max
The documentation for this class was generated from the following files:
- /__w/clio/clio/src/util/Random.hpp
- /__w/clio/clio/src/util/Random.cpp