PHP Net - les nouvelles fonctionaltés : http://php.net/manual/fr/migration70.new-functions.php
Génère de façon aléatoire une chaine binaire d'une longueure choisie
Random_byte
<?php
$bytes = random_bytes(5);
var_dump(bin2hex($bytes));
?>
string(10) "385e33f741"
var_dump(intdiv(3, 2));
int(1)
Random_int : génère de façon aléatoire en tre un nombre min et max donné.
<?php
var_dump(random_int(100, 999));
var_dump(random_int(-1000, 0));
?>
int(248)
int(-898)