Interface RandomSource
- All Known Subinterfaces:
BitRandomSource
- All Known Implementing Classes:
LegacyRandomSource,SingleThreadedRandomSource,WorldgenRandom,XoroshiroRandomSource
public interface RandomSource
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidconsumeCount(int p_158877_) fork()booleandoublefloatdoubleintnextInt()intnextInt(int p_158878_) default intnextIntBetweenInclusive(int p_189321_, int p_189322_) longnextLong()voidsetSeed(long p_158879_)
-
Method Details
-
fork
RandomSource fork() -
forkPositional
PositionalRandomFactory forkPositional() -
setSeed
void setSeed(long p_158879_) -
nextInt
int nextInt() -
nextInt
int nextInt(int p_158878_) -
nextIntBetweenInclusive
default int nextIntBetweenInclusive(int p_189321_, int p_189322_) -
nextLong
long nextLong() -
nextBoolean
boolean nextBoolean() -
nextFloat
float nextFloat() -
nextDouble
double nextDouble() -
nextGaussian
double nextGaussian() -
consumeCount
default void consumeCount(int p_158877_)
-