/*** Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved. File: RNGStaticUtilities.cpp Date: 2022-9-17 File: RNG.cpp Date: 2021-6-11 Author: Reece ***/ #include #include "RNG.hpp" #include "RNGStaticUtilities.hpp" namespace Aurora::RNG { AUKN_SYM AuString ReadString(AuUInt32 length, ERngStringCharacters type) { return gFastDevice->NextString(length, type); } AUKN_SYM void RngString(char *string, AuUInt32 length, ERngStringCharacters type) { gFastDevice->NextString(string, length, type); } AUKN_SYM AuUInt8 RngByte() { return gFastDevice->NextByte(); } AUKN_SYM bool RngBoolean() { return gFastDevice->NextBoolean(); } AUKN_SYM AuUInt32 RngU32() { return gFastDevice->NextU32(); } AUKN_SYM AuUInt32 RngU32(AuUInt32 min, AuUInt32 max) { return gFastDevice->NextU32(min, max); } AUKN_SYM AuUInt64 RngU64() { return gFastDevice->NextU64(); } AUKN_SYM AuInt32 RngInt(AuInt32 min, AuInt32 max) { return gFastDevice->NextInt(min, max); } AUKN_SYM double RngDecimal() { return gFastDevice->NextDecimal(); } AUKN_SYM float RngNumber(float min, float max) { return gFastDevice->NextNumber(min, max); } AUKN_SYM AuUInt32 RngIndex(AuUInt32 count /* = max + 1*/) { return gFastDevice->NextIndex(count); } }