Write a php code which could be used to generate random
numbers between 1 - 100 and display them on the screen.
Answer Posted / yatin
<?php
$n=100; //number_of_numbers_required_to_display
for($i=0;$i<$n;$i++)
{
$num=rand(1,100);
echo $num."<br>";}
?>
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Is php open source?
What changes I have to do in php.ini file for file uploading?
Difference between array_combine and array_merge?
What is the difference between characters 23 and x23?
What are php loops?
What is substr() in php? And how it is used?
What is interface? Why it is used?
Can you use both this () and super () in a constructor?
What does $_server mean?
Write syntax to open a file in php?
How will you calculate days between two dates in PHP?
What is the difference between die () and exit () in php?
What are the advantages of object-oriented programming in php?
How does api connect to database?
Write a statement to show the joining of multiple comparisons in php?