first commit
This commit is contained in:
23
Minecraft.World/Random.h
Normal file
23
Minecraft.World/Random.h
Normal file
@@ -0,0 +1,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();
|
||||
};
|
||||
Reference in New Issue
Block a user