Thread safe random number generator.
More...
#include <rand.hpp>
|
constexpr static uint32_t | max () |
| Obtains the maximum generable number. More...
|
|
constexpr static uint32_t | min () |
| Obtains the minimum generable number. More...
|
|
Thread safe random number generator.
Definition at line 34 of file rand.hpp.
◆ result_type
◆ Rand() [1/4]
constexpr Eng3D::Rand::Rand |
( |
| ) |
|
|
constexprdefault |
◆ Rand() [2/4]
Eng3D::Rand::Rand |
( |
uint32_t |
seed | ) |
|
|
inline |
◆ Rand() [3/4]
constexpr Eng3D::Rand::Rand |
( |
Rand const & |
o | ) |
|
|
inlineconstexprnoexcept |
◆ Rand() [4/4]
constexpr Eng3D::Rand::Rand |
( |
Rand && |
o | ) |
|
|
inlineconstexprnoexcept |
◆ advance_n()
template<int32_t n>
constexpr void Eng3D::Rand::advance_n |
( |
| ) |
|
|
inlineconstexpr |
◆ max()
constexpr static uint32_t Eng3D::Rand::max |
( |
| ) |
|
|
inlinestaticconstexpr |
Obtains the maximum generable number.
- Returns
- constexpr uint32_t
Definition at line 69 of file rand.hpp.
◆ min()
constexpr static uint32_t Eng3D::Rand::min |
( |
| ) |
|
|
inlinestaticconstexpr |
Obtains the minimum generable number.
- Returns
- constexpr uint32_t
Definition at line 75 of file rand.hpp.
◆ operator()()
constexpr uint32_t Eng3D::Rand::operator() |
( |
| ) |
|
|
inlineconstexpr |
◆ operator=() [1/2]
Rand& Eng3D::Rand::operator= |
( |
Rand && |
| ) |
|
|
defaultnoexcept |
◆ operator=() [2/2]
Rand& Eng3D::Rand::operator= |
( |
Rand const & |
| ) |
|
|
defaultnoexcept |
◆ initial_seed
constexpr static uint32_t Eng3D::Rand::initial_seed = 0xf1ea5eed |
|
staticconstexpr |
The documentation for this class was generated from the following file: