Write a php code which could be used to generate random
numbers between 1 - 100 and display them on the screen.
Answer Posted / anjithkumar.garapati
<?php
$n=10;//number_of_numbers_required_to_display
$num=rand(1,100);
for($i=0;$i<n;$i++){
echo $num;}
?>
| Is This Answer Correct ? | 25 Yes | 14 No |
Post New Answer View All Answers
Do you know what is the function func_num_args() used for?
How does php work with apache?
What is php simple definition?
What is the use of mysqli_real_escape_string() function?
What is the default time in seconds for which session data is considered valid?
What is the main difference between require() and require_once()?
How can we connect to a mysql database from a php script?
Why is php used?
What is the function to count elements in an array in PHP?
How do I update php?
Explain soundex() and metaphone().
How values in arrays are indexed?
How many escape sequences are recognized in double-quoted strings in php?
What is put method in php?
Tell us how to set cookies in php?