PcgOneseq128XslRr64
final class PcgOneseq128XslRr64 implements Engine (View source)
Implements a Permuted congruential generator (PCG) with 128 bits of state, XSL and RR output transformations, and 64 bits of output.
Methods
Constructs a new PCG Oneseq 128 XSL RR 64 engine
Generate 64 bits of randomness
Efficiently move the engine ahead multiple steps
Serializes the PcgOneseq128XslRr64 object
Deserializes the data parameter into a PcgOneseq128XslRr64 object
Returns the internal state of the engine
Details
__construct(string|int|null $seed = null)
Constructs a new PCG Oneseq 128 XSL RR 64 engine
string
generate()
Generate 64 bits of randomness
void
jump(int $advance)
Efficiently move the engine ahead multiple steps
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.
array
__serialize()
Serializes the PcgOneseq128XslRr64 object
void
__unserialize(array $data)
Deserializes the data parameter into a PcgOneseq128XslRr64 object
array
__debugInfo()
Returns the internal state of the engine