lundi 4 mai 2020

PHP get min and max values from random numbers [duplicate]

I need to find the Minimum and Maximum number that was randomly generated using the code below. Any tips please on what function to use.

<?php


for ($i=0;$i<20;$i++) {

    $currentRandomNumber = rand(1,50);

    echo $currentRandomNumber . ' ';

}

?>



Aucun commentaire:

Enregistrer un commentaire