From 5dff6d735f86efc7e126fc92c4425e22c787f28f Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 26 Mar 2022 11:36:13 +0100 Subject: [PATCH] Adds BattleRandom methods for unsigned 32 bit numbers --- src/Battling/Models/BattleRandom.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Battling/Models/BattleRandom.hpp b/src/Battling/Models/BattleRandom.hpp index 1361d31..c9e9f79 100644 --- a/src/Battling/Models/BattleRandom.hpp +++ b/src/Battling/Models/BattleRandom.hpp @@ -19,6 +19,9 @@ namespace CreatureLib::Battling { i32 Get() noexcept { return _random.Get(); } i32 Get(i32 max) noexcept { return _random.Get(max); } i32 Get(i32 min, i32 max) noexcept { return _random.Get(min, max); } + u32 GetUnsigned() noexcept { return _random.GetUnsigned(); } + u32 GetUnsigned(u32 max) noexcept { return _random.GetUnsigned(max); } + u32 GetUnsigned(u32 min, u32 max) noexcept { return _random.GetUnsigned(min, max); } ArbUt::Random& GetRNG() noexcept { return _random; } uint_fast32_t GetSeed() const noexcept { return _random.GetSeed(); } };