Interface RandomSource
- All Known Subinterfaces:
BitRandomSource
- All Known Implementing Classes:
LegacyRandomSource
,SingleThreadedRandomSource
,WorldgenRandom
,XoroshiroRandomSource
public interface RandomSource
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
consumeCount
(int p_158877_) fork()
boolean
double
float
double
int
nextInt()
int
nextInt
(int p_158878_) default int
nextIntBetweenInclusive
(int p_189321_, int p_189322_) long
nextLong()
void
setSeed
(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_)
-