PHP rand() Function

The rand() function is used to generate one or more random numbers .

Demo :



Minimum No : Maximum No :  
Random Numbers : 0

Example :

Minimum No : 10 , Maximum No : 100

If you need to generate random numbers following code useful to you.


<?php
 $Minimum_No = 10;
 $Maximum_No = 100;
 $result = rand($Minimum_No,$Maximum_No);
 echo $result;
?>

In the above code is used to generate random numbers .In the rand() functions have used two parameters that name is int min , int max.

Free Download Script :

If you need rand() function demo code download from following link.

Download




Content