Random\Engine\PcgOneseq128XslRr64::jump

(PHP 8 >= 8.2.0)

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

说明

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.

参数

advance

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

返回值

没有返回值。

错误/异常

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

范例

示例 #1 Random\Engine\PcgOneseq128XslRr64::jump() example

<?php

/* ... */

?>

以上例程的输出类似于:

...