Random\Engine\PcgOneseq128XslRr64::__debugInfo

(PHP 8 >= 8.2.0)

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

Description

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

Warning

This function is currently not documented; only its argument list is available.

Parameters

This function has no parameters.

Return Values

Examples

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

<?php

/* ... */

?>

The above example will output something similar to:

...
+add a note

User Contributed Notes 1 note

up
0
aera23 at mail dot com
11 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٤Ԁ