Package net.minecraft.util
Interface RandomSource
- All Known Subinterfaces:
 BitRandomSource
- All Known Implementing Classes:
 LegacyRandomSource,RandomSequences.DirtyMarkingRandomSource,SingleThreadedRandomSource,ThreadSafeLegacyRandomSource,WorldgenRandom,XoroshiroRandomSource
public interface RandomSource
- 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptiondefault voidconsumeCount(int p_216338_) static RandomSourcecreate()static RandomSourcecreate(long p_216336_) static RandomSourcestatic RandomSourceDeprecated.fork()booleandoublefloatdoubleintnextInt()intnextInt(int p_216331_) default intnextInt(int p_216340_, int p_216341_) default intnextIntBetweenInclusive(int p_216333_, int p_216334_) longnextLong()voidsetSeed(long p_216342_) default doubletriangle(double p_216329_, double p_216330_)  
- 
Field Details
- 
GAUSSIAN_SPREAD_FACTOR
Deprecated.- See Also:
 
 
 - 
 - 
Method Details
- 
create
 - 
createThreadSafe
Deprecated. - 
create
 - 
createNewThreadLocalInstance
 - 
fork
RandomSource fork() - 
forkPositional
PositionalRandomFactory forkPositional() - 
setSeed
void setSeed(long p_216342_)  - 
nextInt
int nextInt() - 
nextInt
int nextInt(int p_216331_)  - 
nextIntBetweenInclusive
default int nextIntBetweenInclusive(int p_216333_, int p_216334_)  - 
nextLong
long nextLong() - 
nextBoolean
boolean nextBoolean() - 
nextFloat
float nextFloat() - 
nextDouble
double nextDouble() - 
nextGaussian
double nextGaussian() - 
triangle
default double triangle(double p_216329_, double p_216330_)  - 
consumeCount
default void consumeCount(int p_216338_)  - 
nextInt
default int nextInt(int p_216340_, int p_216341_)  
 -