aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Random.h
blob: 9af3a3c259d8e81e40cb33017c2817a6629eb4a6 (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 seed;
	bool haveNextNextGaussian;
	double nextNextGaussian;
protected:
	int next(int bits);
public:
	Random();
	Random(__int64 seed);
	void setSeed(__int64 s);
	void nextBytes(byte *bytes, unsigned int count);
	double nextDouble();
	double nextGaussian();
	int nextInt();
	int nextInt(int to);
	float nextFloat();
	__int64 nextLong();
	bool nextBoolean();
};