MersenneTwister 5.46.0
MT19937 (32-bit Mersenne Twister), the random generator Bedrock Edition uses for structure placement. Only the standard init_genrand seeding is supported; outputs are unsigned 32-bit ints.
Methods
__construct()
php
public function __construct(int $seed)nextBoundedInt()
php
public function nextBoundedInt(int $bound) : intBedrock's Random::nextInt(bound): genrand_int32() % bound.
nextUnsignedInt()
php
public function nextUnsignedInt() : int