Write a php code which could be used to generate random
numbers between 1 - 100 and display them on the screen.
Answer Posted / ashok
<?php
$n=10;//number_of_numbers_required_to_display
$num=rand(1,100);
for($i=0;$i<$n;$i++)
{
echo rand(1,100)."<BR>";
}
?>
Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What is cms php?
What is different between software and app
How to open a file for reading?
Which functions are used to count the total number of array elements in php?
What is the difference between Split and Explode in PHP?
What is framework in php?
Tell me what does the array operator '===' means?
What is use of htmlspecialchars php?
What is a php 5?
Tell me is it possible to protect special characters in a query string?
Code to open file download dialog in PHP?
What is the difference between the include() and require() functions?
Explain me what is x+ mode in fopen() used for?
What is sql injection in php?
Does php support multiple inheritance?