mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-22 08:45:36 +00:00
restructure codebase according to vcproj filters
This commit is contained in:
24
Minecraft.World/ConsoleJavaLibs/Random.h
Normal file
24
Minecraft.World/ConsoleJavaLibs/Random.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#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(uint8_t* bytes, unsigned int count);
|
||||
double nextDouble();
|
||||
double nextGaussian();
|
||||
int nextInt();
|
||||
int nextInt(int to);
|
||||
float nextFloat();
|
||||
int64_t nextLong();
|
||||
bool nextBoolean();
|
||||
};
|
||||
Reference in New Issue
Block a user