<?php
$a = new \Random\Randomizer(new \Random\Engine\PcgOneseq128XslRr64(42659));
$b = new \Random\Randomizer(clone $a->engine);
$a->getInt(1, 1572864); // Performs two calls to generate().
$a->getInt(1, 1572864);
$b->engine->jump(2);
// Because the first call to ->getInt() called ->generate() twice
// the engines do not match up after performing a ->jump(2).
echo "A: ", bin2hex($a->engine->generate()), "\n";
echo "B: ", bin2hex($b->engine->generate()), "\n";
// Now the B engine matches the A engine.
echo "B: ", bin2hex($b->engine->generate()), "\n";
?>
The above example will output:
A: 1e9f3107d56653d0
B: a156c0086dd79d44
B: 1e9f3107d56653d0