Class Xoroshiro128PlusPlusRandom

java.lang.Object
net.minecraft.util.math.random.Xoroshiro128PlusPlusRandom
All Implemented Interfaces:
Random

public class Xoroshiro128PlusPlusRandom extends Object implements Random
Xoroshiro128++ based pseudo random number generator.
Implementation Note:
The actual implementation can be found on Xoroshiro128PlusPlusRandomImpl.
Mappings:
Namespace Name
official dlt
intermediary net/minecraft/class_6677
named net/minecraft/util/math/random/Xoroshiro128PlusPlusRandom
  • Field Details

    • FLOAT_MULTIPLIER

      private static final float FLOAT_MULTIPLIER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Ldlt;c:F
      intermediary field_35148 Lnet/minecraft/class_6677;field_35148:F
      named FLOAT_MULTIPLIER Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;FLOAT_MULTIPLIER:F
    • DOUBLE_MULTIPLIER

      private static final double DOUBLE_MULTIPLIER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Ldlt;d:D
      intermediary field_35149 Lnet/minecraft/class_6677;field_35149:D
      named DOUBLE_MULTIPLIER Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;DOUBLE_MULTIPLIER:D
    • CODEC

      public static final com.mojang.serialization.Codec<Xoroshiro128PlusPlusRandom> CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Ldlt;b:Lcom/mojang/serialization/Codec;
      intermediary field_44880 Lnet/minecraft/class_6677;field_44880:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;CODEC:Lcom/mojang/serialization/Codec;
    • implementation

      private Xoroshiro128PlusPlusRandomImpl implementation
      Mappings:
      Namespace Name Mixin selector
      official e Ldlt;e:Ldls;
      intermediary field_35150 Lnet/minecraft/class_6677;field_35150:Lnet/minecraft/class_6676;
      named implementation Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;implementation:Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandomImpl;
    • gaussianGenerator

      private final GaussianGenerator gaussianGenerator
      Mappings:
      Namespace Name Mixin selector
      official f Ldlt;f:Ldku;
      intermediary field_35151 Lnet/minecraft/class_6677;field_35151:Lnet/minecraft/class_6672;
      named gaussianGenerator Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;gaussianGenerator:Lnet/minecraft/util/math/random/GaussianGenerator;
  • Constructor Details

    • Xoroshiro128PlusPlusRandom

      public Xoroshiro128PlusPlusRandom(long seed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldlt;<init>(J)V
      intermediary <init> Lnet/minecraft/class_6677;<init>(J)V
      named <init> Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;<init>(J)V
    • Xoroshiro128PlusPlusRandom

      public Xoroshiro128PlusPlusRandom(RandomSeed.XoroshiroSeed seed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldlt;<init>(Ldlh$a;)V
      intermediary <init> Lnet/minecraft/class_6677;<init>(Lnet/minecraft/class_6673$class_6674;)V
      named <init> Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;<init>(Lnet/minecraft/util/math/random/RandomSeed$XoroshiroSeed;)V
    • Xoroshiro128PlusPlusRandom

      public Xoroshiro128PlusPlusRandom(long seedLo, long seedHi)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldlt;<init>(JJ)V
      intermediary <init> Lnet/minecraft/class_6677;<init>(JJ)V
      named <init> Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;<init>(JJ)V
    • Xoroshiro128PlusPlusRandom

      private Xoroshiro128PlusPlusRandom(Xoroshiro128PlusPlusRandomImpl implementation)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldlt;<init>(Ldls;)V
      intermediary <init> Lnet/minecraft/class_6677;<init>(Lnet/minecraft/class_6676;)V
      named <init> Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;<init>(Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandomImpl;)V
  • Method Details

    • split

      public Random split()
      Specified by:
      split in interface Random
      Mappings:
      Namespace Name Mixin selector
      official d Lasc;d()Lasc;
      intermediary method_38420 Lnet/minecraft/class_5819;method_38420()Lnet/minecraft/class_5819;
      named split Lnet/minecraft/util/math/random/Random;split()Lnet/minecraft/util/math/random/Random;
    • nextSplitter

      public RandomSplitter nextSplitter()
      Specified by:
      nextSplitter in interface Random
      Mappings:
      Namespace Name Mixin selector
      official e Lasc;e()Ldlf;
      intermediary method_38421 Lnet/minecraft/class_5819;method_38421()Lnet/minecraft/class_6574;
      named nextSplitter Lnet/minecraft/util/math/random/Random;nextSplitter()Lnet/minecraft/util/math/random/RandomSplitter;
    • setSeed

      public void setSeed(long seed)
      Specified by:
      setSeed in interface Random
      Mappings:
      Namespace Name Mixin selector
      official b Lasc;b(J)V
      intermediary method_43052 Lnet/minecraft/class_5819;method_43052(J)V
      named setSeed Lnet/minecraft/util/math/random/Random;setSeed(J)V
    • nextInt

      public int nextInt()
      Specified by:
      nextInt in interface Random
      Mappings:
      Namespace Name Mixin selector
      official f Lasc;f()I
      intermediary method_43054 Lnet/minecraft/class_5819;method_43054()I
      named nextInt Lnet/minecraft/util/math/random/Random;nextInt()I
    • nextInt

      public int nextInt(int bound)
      Specified by:
      nextInt in interface Random
      Mappings:
      Namespace Name Mixin selector
      official a Lasc;a(I)I
      intermediary method_43048 Lnet/minecraft/class_5819;method_43048(I)I
      named nextInt Lnet/minecraft/util/math/random/Random;nextInt(I)I
    • nextLong

      public long nextLong()
      Specified by:
      nextLong in interface Random
      Mappings:
      Namespace Name Mixin selector
      official g Lasc;g()J
      intermediary method_43055 Lnet/minecraft/class_5819;method_43055()J
      named nextLong Lnet/minecraft/util/math/random/Random;nextLong()J
    • nextBoolean

      public boolean nextBoolean()
      Specified by:
      nextBoolean in interface Random
      Mappings:
      Namespace Name Mixin selector
      official h Lasc;h()Z
      intermediary method_43056 Lnet/minecraft/class_5819;method_43056()Z
      named nextBoolean Lnet/minecraft/util/math/random/Random;nextBoolean()Z
    • nextFloat

      public float nextFloat()
      Specified by:
      nextFloat in interface Random
      Mappings:
      Namespace Name Mixin selector
      official i Lasc;i()F
      intermediary method_43057 Lnet/minecraft/class_5819;method_43057()F
      named nextFloat Lnet/minecraft/util/math/random/Random;nextFloat()F
    • nextDouble

      public double nextDouble()
      Specified by:
      nextDouble in interface Random
      Mappings:
      Namespace Name Mixin selector
      official j Lasc;j()D
      intermediary method_43058 Lnet/minecraft/class_5819;method_43058()D
      named nextDouble Lnet/minecraft/util/math/random/Random;nextDouble()D
    • nextGaussian

      public double nextGaussian()
      Specified by:
      nextGaussian in interface Random
      Mappings:
      Namespace Name Mixin selector
      official k Lasc;k()D
      intermediary method_43059 Lnet/minecraft/class_5819;method_43059()D
      named nextGaussian Lnet/minecraft/util/math/random/Random;nextGaussian()D
    • skip

      public void skip(int count)
      Specified by:
      skip in interface Random
      Mappings:
      Namespace Name Mixin selector
      official b Lasc;b(I)V
      intermediary method_33650 Lnet/minecraft/class_5819;method_33650(I)V
      named skip Lnet/minecraft/util/math/random/Random;skip(I)V
    • next

      private long next(int bits)
      Returns bits upper bits of random value.
      Returns:
      bits upper 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
      official c Ldlt;c(I)J
      intermediary method_39008 Lnet/minecraft/class_6677;method_39008(I)J
      named next Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandom;next(I)J