From 81ebe0dfd449166e00de31ce9be2d7449e31536c Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Tue, 27 Oct 2026 00:29:52 -0400 Subject: Work on JAS inlines, fix limits/climits headers --- include/JSystem/JMath/random.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/JSystem/JMath') diff --git a/include/JSystem/JMath/random.h b/include/JSystem/JMath/random.h index 2d4382e6..c5d42ea3 100644 --- a/include/JSystem/JMath/random.h +++ b/include/JSystem/JMath/random.h @@ -2,6 +2,7 @@ #define RANDOM_H #include "dolphin/types.h" +#include namespace JMath { struct TRandom_fast_ { @@ -56,6 +57,14 @@ public: u32 get_uint32(u32 param_0) { return this->get_ufloat_1() * param_0; } + + f32 get_ufloat(f32 param_0) { + return this->get_ufloat_1() * param_0; + } + + f32 get_float(f32 param_0) { + return this->get_ufloat(param_0) - ((param_0 / 2.0f) - std::numeric_limits::epsilon()); + } }; } // namespace JMath -- cgit v1.2.3