Support for getting the random engine from Random class.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0777561a21
commit
1b623c2b76
@ -24,6 +24,8 @@ namespace Arbutils {
|
||||
explicit inline constexpr BaseRandom(uint_fast32_t seed) noexcept
|
||||
: _seed(seed), _rng(seed), _distribution(0.0, 1.0){};
|
||||
|
||||
inline const RandomT& GetRandomEngine() const noexcept { return _rng; }
|
||||
|
||||
/// Gets a random float between 0.0 and 1.0.
|
||||
[[nodiscard]] inline constexpr float GetFloat() noexcept { return static_cast<float>(GetDouble()); }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user