Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a php code which could be used to generate random
numbers between 1 - 100 and display them on the screen.

Answer Posted / solutio magister

<?php
$n=10;//number_of_numbers_required_to_display
for($i=0;$i<$n;$i++)
{
echo rand(1,100)."<br>";
}
?>

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the ternary conditional operator in php?

1083


What library is used for pdf in php?

1041


When sessions ends?

952


List some features of php that are deprecated in php7?

937


What is regular expression in php?

996


Why do we need abstract class in php?

963


What is the meaning of "enctype= multipart/form-data" ?

1118


Explain what does the unset() function means?

1135


Is laravel better than codeigniter?

1023


What are PHP Magic Methods/Functions. List them.

1054


What is the difference between php4 and php5?

1063


What is namespace and use in php?

985


How to access a global variable inside a function?

1006


Does php has a future?

924


Tell me what does the array operator '===' means?

1105