I would like to define gaps in rand() func. in Php The gap is like in Maths. For example;
$integer1= rand(1,100); but I want to eliminate the gap between 25,60. it is like rand((1,25),(60,100)); of course this notation is not acceptable by php.
Any suggestion, apart from arrays? -Thanks
Aucun commentaire:
Enregistrer un commentaire