Package net.minecraft.util.math.random
Class Xoroshiro128PlusPlusRandom
java.lang.Object
net.minecraft.util.math.random.Xoroshiro128PlusPlusRandom
- All Implemented Interfaces:
 Random
Xoroshiro128++ based pseudo random number generator.
- Implementation Note:
 - The actual implementation can be found on 
Xoroshiro128PlusPlusRandomImpl. - Mappings:
 Namespace Name named net/minecraft/util/math/random/Xoroshiro128PlusPlusRandomintermediary net/minecraft/class_6677official elb
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Xoroshiro128PlusPlusRandom> private static final doubleprivate static final floatprivate final GaussianGeneratorprivate Xoroshiro128PlusPlusRandomImplFields inherited from interface net.minecraft.util.math.random.Random
field_38930 - 
Constructor Summary
ConstructorsModifierConstructorDescriptionXoroshiro128PlusPlusRandom(long seed) Xoroshiro128PlusPlusRandom(long seedLo, long seedHi) privateXoroshiro128PlusPlusRandom(Xoroshiro128PlusPlusRandomImpl implementation)  - 
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.math.random.Random
nextBetween, nextBetweenExclusive, nextTriangular, nextTriangular 
- 
Field Details
- 
FLOAT_MULTIPLIER
private static final float FLOAT_MULTIPLIER- See Also:
 - Mappings:
 Namespace Name Mixin selector named FLOAT_MULTIPLIERLnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;FLOAT_MULTIPLIER:Fintermediary field_35148Lnet/minecraft/class_6677;field_35148:Fofficial cLelb;c:F
 - 
DOUBLE_MULTIPLIER
private static final double DOUBLE_MULTIPLIER- See Also:
 - Mappings:
 Namespace Name Mixin selector named DOUBLE_MULTIPLIERLnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;DOUBLE_MULTIPLIER:Dintermediary field_35149Lnet/minecraft/class_6677;field_35149:Dofficial dLelb;d:D
 - 
CODEC
- Mappings:
 Namespace Name Mixin selector named CODECLnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;CODEC:Lcom/mojang/serialization/Codec;intermediary field_44880Lnet/minecraft/class_6677;field_44880:Lcom/mojang/serialization/Codec;official bLelb;b:Lcom/mojang/serialization/Codec;
 - 
implementation
- Mappings:
 Namespace Name Mixin selector named implementationLnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;implementation:Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandomImpl;intermediary field_35150Lnet/minecraft/class_6677;field_35150:Lnet/minecraft/class_6676;official eLelb;e:Lela;
 - 
gaussianGenerator
- Mappings:
 Namespace Name Mixin selector named gaussianGeneratorLnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;gaussianGenerator:Lnet/minecraft/util/math/random/GaussianGenerator;intermediary field_35151Lnet/minecraft/class_6677;field_35151:Lnet/minecraft/class_6672;official fLelb;f:Lekc;
 
 - 
 - 
Constructor Details
- 
Xoroshiro128PlusPlusRandom
public Xoroshiro128PlusPlusRandom(long seed) - Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;<init>(J)Vintermediary <init>Lnet/minecraft/class_6677;<init>(J)Vofficial <init>Lelb;<init>(J)V
 - 
Xoroshiro128PlusPlusRandom
- Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;<init>(Lnet/minecraft/util/math/random/RandomSeed$XoroshiroSeed;)Vintermediary <init>Lnet/minecraft/class_6677;<init>(Lnet/minecraft/class_6673$class_6674;)Vofficial <init>Lelb;<init>(Lekp$a;)V
 - 
Xoroshiro128PlusPlusRandom
public Xoroshiro128PlusPlusRandom(long seedLo, long seedHi) - Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;<init>(JJ)Vintermediary <init>Lnet/minecraft/class_6677;<init>(JJ)Vofficial <init>Lelb;<init>(JJ)V
 - 
Xoroshiro128PlusPlusRandom
- Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;<init>(Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandomImpl;)Vintermediary <init>Lnet/minecraft/class_6677;<init>(Lnet/minecraft/class_6676;)Vofficial <init>Lelb;<init>(Lela;)V
 
 - 
 - 
Method Details
- 
split
 - 
nextSplitter
- Specified by:
 nextSplitterin interfaceRandom- Mappings:
 Namespace Name Mixin selector named nextSplitterLnet/minecraft/util/math/random/Random;nextSplitter()Lnet/minecraft/util/math/random/RandomSplitter;intermediary method_38421Lnet/minecraft/class_5819;method_38421()Lnet/minecraft/class_6574;official eLbck;e()Lekn;
 - 
setSeed
public void setSeed(long seed)  - 
nextInt
public int nextInt() - 
nextInt
public int nextInt(int bound)  - 
nextLong
public long nextLong() - 
nextBoolean
public boolean nextBoolean()- Specified by:
 nextBooleanin interfaceRandom- Mappings:
 Namespace Name Mixin selector named nextBooleanLnet/minecraft/util/math/random/Random;nextBoolean()Zintermediary method_43056Lnet/minecraft/class_5819;method_43056()Zofficial hLbck;h()Z
 - 
nextFloat
public float nextFloat() - 
nextDouble
public double nextDouble()- Specified by:
 nextDoublein interfaceRandom- Mappings:
 Namespace Name Mixin selector named nextDoubleLnet/minecraft/util/math/random/Random;nextDouble()Dintermediary method_43058Lnet/minecraft/class_5819;method_43058()Dofficial jLbck;j()D
 - 
nextGaussian
public double nextGaussian()- Specified by:
 nextGaussianin interfaceRandom- Mappings:
 Namespace Name Mixin selector named nextGaussianLnet/minecraft/util/math/random/Random;nextGaussian()Dintermediary method_43059Lnet/minecraft/class_5819;method_43059()Dofficial kLbck;k()D
 - 
skip
public void skip(int count)  - 
next
private long next(int bits) Returnsbitsupper bits of random value.- Returns:
 bitsupper bits of random value- Implementation Note:
 - In Xoroshiro128++, the lower bits have to be discarded in order to ensure proper randomness. For example, to obtain a double, the upper 53 bits should be used instead of the lower 53 bits.
 - Mappings:
 Namespace Name Mixin selector named nextLnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;next(I)Jintermediary method_39008Lnet/minecraft/class_6677;method_39008(I)Jofficial cLelb;c(I)J
 
 -