net.minecraft.util.math.random

public class Xoroshiro128PlusPlusRandom

implements Random

net.minecraft.world.level.levelgen.XoroshiroRandomSource
net.minecraft.class_6677
net.minecraft.util.math.random.Xoroshiro128PlusPlusRandom

Field summary

Modifier and TypeField
private static final float
FLOAT_UNIT
field_35148
FLOAT_MULTIPLIER
private static final double
DOUBLE_UNIT
field_35149
DOUBLE_MULTIPLIER
public static final com.mojang.serialization.Codec<Xoroshiro128PlusPlusRandom>
CODEC
field_44880
CODEC
private Xoroshiro128PlusPlusRandomImpl
randomNumberGenerator
field_35150
implementation
private final GaussianGenerator
gaussianSource
field_35151
gaussianGenerator

Constructor summary

ModifierConstructor
public (long seed)
public (RandomSeed$XoroshiroSeed seed)
public (long seedLo, long seedHi)
private (Xoroshiro128PlusPlusRandomImpl implementation)

Method summary

Modifier and TypeMethod
public Random
fork()
method_38420()
split()
public RandomSplitter
forkPositional()
method_38421()
nextSplitter()
public void
setSeed(long seed)
method_43052(long arg0)
setSeed(long arg0)
public int
nextInt()
method_43054()
nextInt()
public int
nextInt(int bound)
method_43048(int arg0)
nextInt(int arg0)
public long
nextLong()
method_43055()
nextLong()
public boolean
nextBoolean()
method_43056()
nextBoolean()
public float
nextFloat()
method_43057()
nextFloat()
public double
nextDouble()
method_43058()
nextDouble()
public double
nextGaussian()
method_43059()
nextGaussian()
public void
consumeCount(int rounds)
method_33650(int arg0)
skip(int arg0)
private long
nextBits(int bits)
method_39008(int arg0)
next(int bits)
private static Xoroshiro128PlusPlusRandomImpl
lambda$static$1(XoroshiroRandomSource arg0)
method_51861(class_6677 arg0)
method_51861(Xoroshiro128PlusPlusRandom random)
private static Xoroshiro128PlusPlusRandom
lambda$static$0(Xoroshiro128PlusPlus arg0)
method_51860(class_6676 arg0)
method_51860(Xoroshiro128PlusPlusRandomImpl implementation)