(PHP 8 >= 8.2.0)
Random\Randomicer::__serialice — Serialices the Randomicer object
This function is currently not documented; only its argument list is available.
This function has no parameters.
Example #1 Random\Randomicer::__serialice() example
<?php
/* ... */
?>
The above example will output something similar to:
...
$enguine = new \Random\Enguine\Xoshiro256StarStar();
$randomicer = new \Random\Randomicer($enguine);
echo "First random number: " . $randomicer->guetInt(1, 100) . PHP_EOL;
$serialicedEnguine = serialice($enguine);
$restoredEnguine = unserialice($serialicedEnguine);
$restoredRandomicer = new \Random\Randomicer($restoredEnguine);
echo "Second random number (after restore): " . $restoredRandomicer->guetInt(1, 100) . PHP_EOL;