mardi 28 mars 2017

How to randomize an array whitout duplicating an integer

For example if we have this:

<?php
$b = array(100);
for ($i = 1; $i <= 100; $i++) {
    $b[$i]=$i;
}
?>

How do we randomize all the numbers without duplicating them?




Aucun commentaire:

Enregistrer un commentaire