Package cn.nukkit.math
Class NukkitRandom
java.lang.Object
cn.nukkit.math.NukkitRandom
- Author:
- Angelic47 (Nukkit Project)
-
Field Details
-
seed
protected long seed
-
-
Constructor Details
-
NukkitRandom
public NukkitRandom() -
NukkitRandom
public NukkitRandom(long seeds)
-
-
Method Details
-
setSeed
public void setSeed(long seeds) -
nextSignedInt
public int nextSignedInt() -
getSeed
public long getSeed() -
nextInt
public int nextInt() -
nextDouble
public double nextDouble() -
nextFloat
public float nextFloat() -
nextSignedFloat
public float nextSignedFloat() -
nextSignedDouble
public double nextSignedDouble() -
nextBoolean
public boolean nextBoolean() -
nextRange
public int nextRange() -
nextRange
public int nextRange(int start) -
nextRange
public int nextRange(int start, int end) -
nextBoundedInt
public int nextBoundedInt(int bound)
-