Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Random\Engine\Secure::generateRandom\Engine\Mt19937::__construct>
^RandomLast updated: Mon, 26 Oct 2026

The Random\Engine\Mt19937 class

(PHP 8 >= 8.2.0)

Introduction

Implements the » Mt19937 (“Mersenne Twister”) algorithm.

Class synopsis

namespace Random\Engine;
final class Mt19937 implements Random\Engine {
/* Methods */
public function __construct(?int $seed = null, int $mode = MT_RAND_MT19937)
public function __debugInfo(): array
public function generate(): string
public function __serialize(): array
public function __unserialize(array $data): void
}

Table of Contents


<Random\Engine\Secure::generateRandom\Engine\Mt19937::__construct>
^RandomLast updated: Mon, 26 Oct 2026