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 / kap

it is not the correct answer because the range they asked 0-
1000 so need to to %1000. :-)

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2602


What are the key features in c programming language?

1027


What is use of #include in c?

1126


Explain b+ tree?

1030


What is call by reference in functions?

1374


How do I create a directory? How do I remove a directory (and its contents)?

1130


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1762


Should I learn c before c++?

1197


i have a written test for microland please give me test pattern

2702


Why static variable is used in c?

1002


number of times a digit is present in a number

2009


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

1499


What does & mean in scanf?

1071


What is header file definition?

1051


How can you call a function, given its name as a string?

1119