PHP 8.6.0 RC3 available for testing

Random\Engine\PcgOneseq128XslRr64::__debugInfo

(PHP 8 >= 8.2.0)

Random\Engine\PcgOneseq128XslRr64::__debugInfo — Returns the internal state of the engine

说明

public function Random\Engine\PcgOneseq128XslRr64::__debugInfo(): array

警告

本函数还未编写文档,仅有参数列表。

参数

此函数没有参数。

返回值

示例

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

<?php

/* ... */

?>

以上示例的输出类似于:

...
+添加备注

用户贡献的备注 1 note

up
0
aera23 at mail dot com
10 days ago
The debug info seems to output 2 64 bit states, hex encoded:

<?php
// Uses a random 128 Bit seed.
$e = new \Random\Engine\PcgOneseq128XslRr64(2);

$r = new \Random\Randomizer($e);

print_r($e->__debugInfo());
echo $e->generate();

?>

Array
(
    [__states] => Array
        (
            [0] => 412fcfd8d398338f
            [1] => 24321d78e5482b33
        )

)
٤U٤Ԁ
To Top