ludus::foundation::math::RandomStream¶
Ludus Wiki · API overview · Browse API
Class
Declared in modules/foundation/math/include/ludus/foundation/math/random.hpp
#include <ludus/foundation/math/random.hpp>
class ludus::foundation::math::RandomStream
Methods¶
RandomStream¶
constexpr ludus::foundation::math::RandomStream::RandomStream() noexcept
Declared in modules/foundation/math/include/ludus/foundation/math/random.hpp
TryReseed¶
bool ludus::foundation::math::RandomStream::TryReseed(uint64 seed, uint64 selector) noexcept
Related types: uint64
Declared in modules/foundation/math/include/ludus/foundation/math/random.hpp
NextUInt32¶
uint32 ludus::foundation::math::RandomStream::NextUInt32() noexcept
Related types: uint32
Declared in modules/foundation/math/include/ludus/foundation/math/random.hpp
TryNextBounded¶
MathStatus ludus::foundation::math::RandomStream::TryNextBounded(uint32 bound, uint32 &out) noexcept
Related types: uint32 · MathStatus
Declared in modules/foundation/math/include/ludus/foundation/math/random.hpp
NextFloat01¶
float32 ludus::foundation::math::RandomStream::NextFloat01() noexcept
Related types: float32
Declared in modules/foundation/math/include/ludus/foundation/math/random.hpp
GetState¶
RandomState ludus::foundation::math::RandomStream::GetState() const noexcept
Related types: RandomState
Declared in modules/foundation/math/include/ludus/foundation/math/random.hpp
TryRestore¶
MathStatus ludus::foundation::math::RandomStream::TryRestore(const RandomState &state) noexcept
Related types: MathStatus · RandomState
Declared in modules/foundation/math/include/ludus/foundation/math/random.hpp