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 take a substring from a given string?
What are html entities?
Can age be a variable?
How do you check if a variable has not been set in php?
How to download files from an external server with code in php?
What is smarty?
Does php have future?
Which framework is best for php?
Where is session value stored php?
What is static method php?
Which is not a file-related function in php?
What is a php array?
How to pad an array with the same value multiple times?
Are php sessions secure?
How to close a session properly?