Random\Engine\PcgOneseq128XslRr64::jump

(PHP 8 >= 8.2.0)

Random\Engine\PcgOneseq128XslRr64::jumpEfficiently move the engine ahead multiple steps

Description

public Random\Engine\PcgOneseq128XslRr64::jump(int $advance): void

Moves the algorithm’s state ahead by the number of steps given by advance, as if Random\Engine\PcgOneseq128XslRr64::generate() was called that many times.

Parameters

advance

The number of steps to move ahead; must be 0 or greater.

Return Values

No value is returned.

Errors/Exceptions

  • If advance is less than 0, a ValueError will be thrown.

Examples

Example #1 Random\Engine\PcgOneseq128XslRr64::jump() example

<?php

/* ... */

?>

The above example will output something similar to:

...
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top