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

What is include in php?

963


Why php is widely used?

954


What is php and why we use it?

1021


What are the common uses of php?

1105


Explain what is the static variable in function useful for?

961


Explain what are the different errors in php?

997


What is mysql_fetch_array?

1049


Why session timeout is important?

1131


Tell me what is htaccess?

920


How to pad an array with the same value multiple times?

928


What is final class and final method?

1069


What is laravel php?

1026


Code to open file download dialog in PHP?

1093


What is the difference between laravel and php?

931


Tell me what are magic methods?

979