XoroshiroRandom 5.46.0
Implements RandomSource
Xoroshiro128++ as used by the 1.18+ world generator (ported from misode/deepslate, MIT).
Methods
__construct()
php
public function __construct(int $seedLo, int $seedHi)consume()
php
public function consume(int $count) : voidcreate()
php
public static function create(int $seed) : selffork()
php
public function fork() : \pocketmine\world\generator\vanilla\random\RandomSourceforkPositional()
php
public function forkPositional() : \pocketmine\world\generator\vanilla\random\XoroshiroPositionalRandomFactorygetSeedHi()
php
public function getSeedHi() : intgetSeedLo()
php
public function getSeedLo() : intmixStafford13()
php
public static function mixStafford13(int $value) : intnextBoundedInt()
php
public function nextBoundedInt(int $bound) : intnextDouble()
php
public function nextDouble() : floatnextFloat()
php
public function nextFloat() : floatnextInt()
php
public function nextInt() : intnextLong()
php
public function nextLong() : int