Files
GabsPuNs-MinecraftConsoles/Minecraft.World/Random.h
GabsPuNs 40d48948ff Use BYTE Win Typedef instead of byte typedef from Minecraft.World
"byte" wasnt working anymore for some reason
2026-04-13 17:54:28 -04:00

23 lines
405 B
C++

#pragma once
class Random
{
private:
int64_t seed;
bool haveNextNextGaussian;
double nextNextGaussian;
protected:
int next(int bits);
public:
Random();
Random(int64_t seed);
void setSeed(int64_t s);
void nextBytes(BYTE *bytes, unsigned int count);
double nextDouble();
double nextGaussian();
int nextInt();
int nextInt(int to);
float nextFloat();
int64_t nextLong();
bool nextBoolean();
};