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 / anjithkumar.garapati

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

Is This Answer Correct ?    25 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to take a substring from a given string?

1005


What are html entities?

938


Can age be a variable?

924


How do you check if a variable has not been set in php?

918


How to download files from an external server with code in php?

882


What is smarty?

956


Does php have future?

955


Which framework is best for php?

962


Where is session value stored php?

1021


What is static method php?

1004


Which is not a file-related function in php?

1039


What is a php array?

997


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

914


Are php sessions secure?

968


How to close a session properly?

974