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...

How to write a code for random pick from 1-1000 numbers?
The output should contain the 10 numbers from the range
1-1000 which should pick randomly, ie ,for each time we run
the code we should get different outputs.

Answer Posted / sharan

if the randomize(); doesn't work
replace it with srand ((unsigned) time (NULL));

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the difference between a string and an array?

1101


What are the parts of c program?

1040


what type of questions arrive in interview over c programming?

1982


Why isn't it being handled properly?

1001


What is class and object in c?

1047


What is the use of header?

1051


Explain the difference between #include "..." And #include <...> In c?

982


Explain how can I manipulate strings of multibyte characters?

1158


What is the difference between the local variable and global variable in c?

926


What is the code for 3 questions and answer check in VisualBasic.Net?

2101


What is the difference between a free-standing and a hosted environment?

1097


What are the uses of a pointer?

1100


Why do we use return in c?

951


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1477


What is function prototype?

1056