Write a php code which could be used to generate random
numbers between 1 - 100 and display them on the screen.
Answer Posted / shankar
<?php
$n=10;//number_of_numbers_required_to_display
for($i=0;$i<$n;$i++){
$num=rand(1,100);
echo $num;?>
<br/>
<?php
}
?>
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
Where sessions stored in PHP?
What does session start do in php?
What is put method in php?
What is the function file_get_contents() usefull for?
How to turn on the session support in php?
What is the purpose of the php empty function?
How can MYSQL functions be available with PHP?
Why should I store logs in a database rather than a file?
Tell me what is the use of mysql_real_escape_string() function?
What is trim function in php?
Where is my php ini file?
How to break a file path name into parts?
Which php framework is best?
What is PHP's configuration file called?
Is php session id unique?