Skip to content

ludus::foundation::math::PreparedBound32

Ludus Wiki · API overview · Browse API

Class

Precompute the division for repeated sampling with the same bound.
Default bound is one; checked construction prevents an inconsistent threshold.

Declared in modules/foundation/math/include/ludus/foundation/math/addressed_random.hpp

#include <ludus/foundation/math/addressed_random.hpp>
class ludus::foundation::math::PreparedBound32

Methods

Bound

uint32 ludus::foundation::math::PreparedBound32::Bound() const noexcept

Related types: uint32

Declared in modules/foundation/math/include/ludus/foundation/math/addressed_random.hpp

Threshold

uint32 ludus::foundation::math::PreparedBound32::Threshold() const noexcept

Related types: uint32

Declared in modules/foundation/math/include/ludus/foundation/math/addressed_random.hpp