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

Do you know what is the function func_num_args() used for?

973


How does php work with apache?

978


What is php simple definition?

931


What is the use of mysqli_real_escape_string() function?

864


What is the default time in seconds for which session data is considered valid?

1051


What is the main difference between require() and require_once()?

938


How can we connect to a mysql database from a php script?

1040


Why is php used?

960


What is the function to count elements in an array in PHP?

1042


How do I update php?

988


Explain soundex() and metaphone().

964


How values in arrays are indexed?

1006


How many escape sequences are recognized in double-quoted strings in php?

930


What is put method in php?

939


Tell us how to set cookies in php?

881