LegacyRandom 5.46.0
Implements RandomSource
The 48-bit linear congruential generator of java.util.Random, used by the legacy (pre-1.18 seeded) noises.
Methods
__construct()
php
public function __construct(int $seed)consume()
php
public function consume(int $count) : voidfork()
php
public function fork() : \pocketmine\world\generator\vanilla\random\RandomSourceforkPositional()
php
public function forkPositional() : \pocketmine\world\generator\vanilla\random\PositionalRandomFactorynextBoolean()
php
public function nextBoolean() : boolnextBoundedInt()
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() : intsetSeed()
php
public function setSeed(int $seed) : void