aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Random.h
blob: cfb6af26f6b82740af1f6d72f2a1703f37333fe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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();
};