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
How can you submit a form without a submit button?
How to write php function in html onclick?
Is nan in php?
What are the common uses of php?
Is php front end?
What is the difference between pop3 IMAP and MAPI?
How to check an key is exists in array?
What is polymorphism in php?
What is csrf token and how it works?
How could I install codeignitor ?
Does php have multiple inheritance?
Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?
Is php session id unique?
How to enable cURL in PHP?
What is the advantage of runtime polymorphism?