$engine = new \Random\Engine\Xoshiro256StarStar();
$randomizer = new \Random\Randomizer($engine);
echo "First random number: " . $randomizer->getInt(1, 100) . PHP_EOL;
$serializedEngine = serialize($engine);
$restoredEngine = unserialize($serializedEngine);
$restoredRandomizer = new \Random\Randomizer($restoredEngine);
echo "Second random number (after restore): " . $restoredRandomizer->getInt(1, 100) . PHP_EOL;