public class BedrockRandom
extends net.daporkchop.lib.random.impl.AbstractFastPRandom
Warning: very slow!
| Constructor and Description |
|---|
BedrockRandom() |
BedrockRandom(int seed) |
| Modifier and Type | Method and Description |
|---|---|
int |
getSeed() |
static BedrockRandom |
getThreadLocal() |
com.nukkitx.math.vector.Vector3f |
nextGaussianVector3() |
int |
nextInt() |
long |
nextLong() |
com.nukkitx.math.vector.Vector3f |
nextVector3() |
void |
setSeed(int seed) |
void |
setSeed(long seed) |
asJava, next, next, nextBoolean, nextByte, nextBytes, nextBytes, nextBytes32, nextBytes32Fast, nextBytes64, nextBytes64Fast, nextDouble, nextDouble, nextDouble, nextFloat, nextFloat, nextFloat, nextGaussian, nextGaussianDouble, nextGaussianFloat, nextInt, nextInt, nextLong, nextLong, nextShort, nextUnsignedInt, nextUnsignedLongdoubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longspublic BedrockRandom()
public BedrockRandom(int seed)
public static BedrockRandom getThreadLocal()
public int getSeed()
public void setSeed(int seed)
public int nextInt()
nextInt in interface net.daporkchop.lib.random.PRandomnextInt in class net.daporkchop.lib.random.impl.AbstractFastPRandompublic long nextLong()
nextLong in interface net.daporkchop.lib.random.PRandomnextLong in class net.daporkchop.lib.random.impl.AbstractFastPRandompublic com.nukkitx.math.vector.Vector3f nextVector3()
public com.nukkitx.math.vector.Vector3f nextGaussianVector3()
Copyright © 2020. All rights reserved.