Generate Random Integer in Range using PHP

random_int function

<?php $minValue = 1; $maxValue = 100; $randValue = random_int($minValue, $maxValue); echo $randValue;

Leave a Comment

Cancel reply

Your email address will not be published.