Skip to content

XoroshiroRandom 5.46.0 ​

final class · pocketmine\world\generator\vanilla\random\XoroshiroRandom · source

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) : void

create() ​

php
public static function create(int $seed) : self

fork() ​

php
public function fork() : \pocketmine\world\generator\vanilla\random\RandomSource

forkPositional() ​

php
public function forkPositional() : \pocketmine\world\generator\vanilla\random\XoroshiroPositionalRandomFactory

getSeedHi() ​

php
public function getSeedHi() : int

getSeedLo() ​

php
public function getSeedLo() : int

mixStafford13() ​

php
public static function mixStafford13(int $value) : int

nextBoundedInt() ​

php
public function nextBoundedInt(int $bound) : int

nextDouble() ​

php
public function nextDouble() : float

nextFloat() ​

php
public function nextFloat() : float

nextInt() ​

php
public function nextInt() : int

nextLong() ​

php
public function nextLong() : int

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.