Write a php code which could be used to generate random
numbers between 1 - 100 and display them on the screen.
Answer Posted / solutio magister
<?php
$n=10;//number_of_numbers_required_to_display
for($i=0;$i<$n;$i++)
{
echo rand(1,100)."<br>";
}
?>
Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is the difference between php4 and php5?
How can we define a variable accessible in functions of a php script?
What is the use of curl()?
Is php easy language to learn?
Explain php split() function.
Is nan in javascript?
How do you end a function in python?
Explain the difference between require() and require_once()?
How to copy a file?
What does the unlink() function mean?
What is the value for this auto incremented field user_pri_id?
How many php functions are there?
Is php free to use?
What is cookie and session in php?
What are the differences between require and include?