PHP 8.5.0 Alpha 4 available for testing

Random\Randomizer::__construct

(PHP 8 >= 8.2.0)

Random\Randomizer::__constructConstructs a new Randomizer

Descrizione

public Random\Randomizer::__construct(?Random\Engine $engine = null)

Avviso

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

Elenco dei parametri

engine

The Random\Engine to use to generate randomness.

If engine is omitted or null, a new Random\Engine\Secure object will be used.

Esempi

Example #1 Random\Randomizer::__construct() example

<?php
$r
= new \Random\Randomizer();
$r = new \Random\Randomizer(new \Random\Engine\Mt19937());
?>
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top