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 create an array in php?

1112


What is php in simple words?

1025


How the web server interprets php and interacts with the client?

968


How do you use an array in excel?

1107


In PHP, fgets() is used to read a file one line at a time. State Whether True or False?

1178


How big is nvarchar max?

1020


What type of headers have to be added in the mail function to attach a file?

948


What is strcmp?

957


How to make horizonatl menu and vertical menu responsive

2307


Tell me what library is used for pdf in php?

1011


Steps for the payment gateway processing?

1019


Can we learn php without html?

998


Difference between get and post method.

1009


What is print_r?

905


What is the maximum size of a table in mysql?

1010