public class NukkitRandom extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
seed |
| Constructor and Description |
|---|
NukkitRandom() |
NukkitRandom(long seeds) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
nextBoolean() |
int |
nextBoundedInt(int bound) |
double |
nextDouble() |
float |
nextFloat() |
int |
nextInt() |
int |
nextRange() |
int |
nextRange(int start) |
int |
nextRange(int start,
int end) |
double |
nextSignedDouble() |
float |
nextSignedFloat() |
int |
nextSignedInt() |
void |
setSeed(long seeds) |
public void setSeed(long seeds)
public int nextSignedInt()
public int nextInt()
public double nextDouble()
public float nextFloat()
public float nextSignedFloat()
public double nextSignedDouble()
public boolean nextBoolean()
public int nextRange()
public int nextRange(int start)
public int nextRange(int start,
int end)
public int nextBoundedInt(int bound)
Copyright © 2017–2018 NukkitX. All rights reserved.