Files
Luke StreetandGitHub 484417b243 CEnvFxManager 95% + some GX macros (#50)
* CEnvFxManager 95% + some GX macros

* Use regular GXVert functions in CElementGen::RenderModels
2026-03-23 12:23:49 -06:00

41 lines
714 B
C++

#ifndef _CRANDOM16
#define _CRANDOM16
#include "types.h"
class CRandom16;
class CGlobalRandom {
static CGlobalRandom* gCurrentGlobalRandom;
public:
CGlobalRandom(CRandom16& rnd);
~CGlobalRandom();
private:
CRandom16& mRandom;
bool mIsFirst;
CGlobalRandom* mPrev;
};
class CRandom16 {
friend class CGlobalRandom;
static CRandom16* gRandomNumber;
static void _SetRandomNumber(CRandom16* rnd);
public:
CRandom16(uint seed = 99);
void SetSeed(uint seed);
int Range(int min, int max);
float Range(float min, float max);
int Next();
const float Float();
uint GetSeed() const { return mSeed; }
static CRandom16* GetRandomNumber();
private:
uint mSeed;
};
#endif // _CRANDOM16