70 lines
1.5 KiB
C++
70 lines
1.5 KiB
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: AuRNGStaticUtilities.cpp
|
|
Date: 2022-9-17
|
|
File: RNG.cpp
|
|
Date: 2021-6-11
|
|
Author: Reece
|
|
***/
|
|
#include <Source/RuntimeInternal.hpp>
|
|
#include "AuRNG.hpp"
|
|
#include "AuRNGStaticUtilities.hpp"
|
|
|
|
namespace Aurora::RNG
|
|
{
|
|
AUKN_SYM AuString ReadString(AuUInt32 dwLength, ERngStringCharacters type)
|
|
{
|
|
return gFastDevice->NextString(dwLength, type);
|
|
}
|
|
|
|
AUKN_SYM void RngString(char *pString, AuUInt32 dwLength, ERngStringCharacters type)
|
|
{
|
|
gFastDevice->NextString(pString, dwLength, 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 uMin, AuUInt32 uMax)
|
|
{
|
|
return gFastDevice->NextU32(uMin, uMax);
|
|
}
|
|
|
|
AUKN_SYM AuUInt64 RngU64()
|
|
{
|
|
return gFastDevice->NextU64();
|
|
}
|
|
|
|
AUKN_SYM AuInt32 RngInt(AuInt32 uMin, AuInt32 uMax)
|
|
{
|
|
return gFastDevice->NextInt(uMin, uMax);
|
|
}
|
|
|
|
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 uCount /* = max + 1*/)
|
|
{
|
|
return gFastDevice->NextIndex(uCount);
|
|
}
|
|
} |