RandomSource 5.46.0
Random source with the semantics of the vanilla (1.18+) world generator random sources.
Methods
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\PositionalRandomFactorynextBoundedInt()
php
public function nextBoundedInt(int $bound) : intUniform int in [0, bound).
nextDouble()
php
public function nextDouble() : floatnextFloat()
php
public function nextFloat() : floatnextInt()
php
public function nextInt() : intUniform 32-bit signed int.
nextLong()
php
public function nextLong() : int