Php program to generate the random number

A Php program to generate the random number. Using this program we can print the random number as result in the output. In PHP, the rand() function is used to produce a random number. rand (syntax) () To generate a random integer, use the rand() function. If the min and max values are not supplied, the default values are 0 and getrandmax().

<?php
echo(rand());
?>

 

Output:

3464567