Write a php code which could be used to generate random
numbers between 1 - 100 and display them on the screen.
Answer Posted / yatin
<?php
$n=100; //number_of_numbers_required_to_display
for($i=0;$i<$n;$i++)
{
$num=rand(1,100);
echo $num."<br>";}
?>
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Which function can be used to exit from the script after displaying the error message?
Where is session value stored php?
How easy is php?
What is escaping to php?
What is static variable in php?
Can I learn php in a month?
Which is useful for method overloading?
How does php work with apache?
Who developed php?
How do you check if an arraylist is empty?
Explain what does the expression exception::__tostring means?
Can you explain, when to use if-else if-else over switch statements?
What software is required for php?
How many types of array supported in php?
What is the difference between == and === operator in PHP?