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 SummaryFields
- 
Method SummaryModifier 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_FACTORDeprecated.- See Also:
 
 
- 
- 
Method Details- 
create
- 
createThreadSafeDeprecated.
- 
create
- 
createNewThreadLocalInstance
- 
forkRandomSource fork()
- 
forkPositionalPositionalRandomFactory forkPositional()
- 
setSeedvoid setSeed(long p_216342_) 
- 
nextIntint nextInt()
- 
nextIntint nextInt(int p_216331_) 
- 
nextIntBetweenInclusivedefault int nextIntBetweenInclusive(int p_216333_, int p_216334_) 
- 
nextLonglong nextLong()
- 
nextBooleanboolean nextBoolean()
- 
nextFloatfloat nextFloat()
- 
nextDoubledouble nextDouble()
- 
nextGaussiandouble nextGaussian()
- 
triangledefault double triangle(double p_216329_, double p_216330_) 
- 
consumeCountdefault void consumeCount(int p_216338_) 
- 
nextIntdefault int nextInt(int p_216340_, int p_216341_) 
 
-