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
How to create an array in php?
What is php in simple words?
How the web server interprets php and interacts with the client?
How do you use an array in excel?
In PHP, fgets() is used to read a file one line at a time. State Whether True or False?
How big is nvarchar max?
What type of headers have to be added in the mail function to attach a file?
What is strcmp?
How to make horizonatl menu and vertical menu responsive
Tell me what library is used for pdf in php?
Steps for the payment gateway processing?
Can we learn php without html?
Difference between get and post method.
What is print_r?
What is the maximum size of a table in mysql?