How can I get a not repeating random value, I tried this but did not work got an error:
$randomdate = mt_rand(1, 52);
$newdate = shuffle($randomdate);
echo $newdate;
And got this error:
Warning: shuffle() expects parameter 1 to be array, integer given
Aucun commentaire:
Enregistrer un commentaire