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

Descrizione

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

Avviso

Questa funzione, al momento non è documentata; è disponibile soltanto la lista degli argomenti.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Esempi

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

<?php

/* ... */

?>

Il precedente esempio visualizzerà qualcosa simile a:

...
+add a note

User Contributed Notes 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