(PHP 8 >= 8.2.0)
Random\Randomizer::__construct — Constructs a new Randomizer
This function is currently not documented; only its argument list is available.
engineThe Random\Engine to use to generate randomness.
If engine is omitted or null, a new Random\Engine\Secure object will be used.
Example #1 Random\Randomizer::__construct() example
<?php $r = new \Random\Randomizer(); $r = new \Random\Randomizer(new \Random\Engine\Mt19937()); ?>
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/random-randomizer.construct.php