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 are the functions for imap?

1059


Please explain is it possible to use com component in php?

956


How can php and javascript interact?

1213


Which php framework is best for web development?

911


What is the functionality of md5 function in php?

974


Tell me what is the difference between unset() and unlink()?

997


What is factory pattern in php?

876


Where php basically used?

943


What are the three classes of errors that can occur in php?

979


Which will check if a function exists?

1027


Explain me how failures in execution are handled with include() and require() functions?

970


What is php and why it is used?

994


What are the steps for the payment gateway processing?

950


Which operator is used to combine string values in php?

882


How many functions are there in php?

945