Files
MinecraftConsoles/Minecraft.World/Random.h

23 lines
405 B
C
Raw Normal View History

2026-03-01 12:16:08 +08:00
#pragma once
class Random
{
private:
__int64 seed;
2026-03-01 12:16:08 +08:00
bool haveNextNextGaussian;
double nextNextGaussian;
protected:
int next(int bits);
public:
Random();
Random(__int64 seed);
void setSeed(__int64 s);
2026-03-01 12:16:08 +08:00
void nextBytes(byte *bytes, unsigned int count);
double nextDouble();
double nextGaussian();
int nextInt();
int nextInt(int to);
float nextFloat();
__int64 nextLong();
2026-03-01 12:16:08 +08:00
bool nextBoolean();
};