NW4F Eft
Loading...
Searching...
No Matches
nw::eft::Random Class Reference

#include <eft_Random.h>

Public Member Functions

 Random ()
 Random (u32 seed)
 Random (u32 seed_0, u32 seed_1, u32 seed_2, u32 seed_3)
void Init ()
void Init (u32 seed)
void Init (u32 seed_0, u32 seed_1, u32 seed_2, u32 seed_3)
u32 GetU32 ()
u32 GetU32 (u32 ceil)
s32 GetS32Range (s32 a, s32 b)
f32 GetF32 ()
f32 GetF32 (f32 ceil)
f32 GetF32Range (f32 a, f32 b)
f64 GetF64 ()
f64 GetF64 (f64 ceil)
f64 GetF64Range (f64 a, f64 b)
int GetSign ()
bool GetBool ()
void GetContext (u32 *num_0, u32 *num_1, u32 *num_2, u32 *num_3) const

Private Attributes

u32 mX
u32 mY
u32 mZ
u32 mW

Constructor & Destructor Documentation

◆ Random() [1/3]

nw::eft::Random::Random ( )
inline

◆ Random() [2/3]

nw::eft::Random::Random ( u32 seed)
inlineexplicit

◆ Random() [3/3]

nw::eft::Random::Random ( u32 seed_0,
u32 seed_1,
u32 seed_2,
u32 seed_3 )
inline

Member Function Documentation

◆ Init() [1/3]

void nw::eft::Random::Init ( )
inline

◆ Init() [2/3]

void nw::eft::Random::Init ( u32 seed)
inline

◆ Init() [3/3]

void nw::eft::Random::Init ( u32 seed_0,
u32 seed_1,
u32 seed_2,
u32 seed_3 )
inline

◆ GetU32() [1/2]

u32 nw::eft::Random::GetU32 ( )
inline

◆ GetU32() [2/2]

u32 nw::eft::Random::GetU32 ( u32 ceil)
inline

◆ GetS32Range()

s32 nw::eft::Random::GetS32Range ( s32 a,
s32 b )
inline

◆ GetF32() [1/2]

f32 nw::eft::Random::GetF32 ( )
inline

◆ GetF32() [2/2]

f32 nw::eft::Random::GetF32 ( f32 ceil)
inline

◆ GetF32Range()

f32 nw::eft::Random::GetF32Range ( f32 a,
f32 b )
inline

◆ GetF64() [1/2]

f64 nw::eft::Random::GetF64 ( )
inline

◆ GetF64() [2/2]

f64 nw::eft::Random::GetF64 ( f64 ceil)
inline

◆ GetF64Range()

f64 nw::eft::Random::GetF64Range ( f64 a,
f64 b )
inline

◆ GetSign()

int nw::eft::Random::GetSign ( )
inline

◆ GetBool()

bool nw::eft::Random::GetBool ( )
inline

◆ GetContext()

void nw::eft::Random::GetContext ( u32 * num_0,
u32 * num_1,
u32 * num_2,
u32 * num_3 ) const
inline

Member Data Documentation

◆ mX

u32 nw::eft::Random::mX
private

◆ mY

u32 nw::eft::Random::mY
private

◆ mZ

u32 nw::eft::Random::mZ
private

◆ mW

u32 nw::eft::Random::mW
private