Write a php code which could be used to generate random
numbers between 1 - 100 and display them on the screen.
Answer Posted / ashok
<?php
$n=10;//number_of_numbers_required_to_display
$num=rand(1,100);
for($i=0;$i<$n;$i++)
{
echo rand(1,100)."<BR>";
}
?>
Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
Which is better php or wordpress?
How do I escape data before storing it into the database?
Which PHP function would you use to send an email?
What is overriding in php?
How to calculate the difference between two dates using php?
Does csrf token change?
Which programming language does php resemble to?
What is escape data in php?
Differences between get, post and request methods ?
Can I run php without xampp?
What is polymorphism?
Which is the dependent variable?
What are the features of php 7?
What are the advantages of triggers in php?
What is a php certification?