Mt19937
final class Mt19937 implements Engine (View source)
Implements the Mt19937 (“Mersenne Twister”) algorithm.
Methods
__construct(int|null $seed = null, int $mode = MT_RAND_MT19937)
Constructs a new Mt19937 engine
string
generate()
Generate 32 bits of randomness
array
__serialize()
Serializes the Mt19937 object
void
__unserialize(array $data)
Deserializes the data parameter into a Mt19937 object
array
__debugInfo()
Returns the internal state of the engine
Details
__construct(int|null $seed = null, int $mode = MT_RAND_MT19937)
Constructs a new Mt19937 engine
string
generate()
Generate 32 bits of randomness
array
__serialize()
Serializes the Mt19937 object
void
__unserialize(array $data)
Deserializes the data parameter into a Mt19937 object
array
__debugInfo()
Returns the internal state of the engine