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

1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

2754


What is the purpose of the statement: strcat (S2, S1)?

1081


What's the right way to use errno?

1090


How can I swap two values without using a temporary?

1063


How can I convert a number to a string?

1098


What is a c token and types of c tokens?

1014


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1295


What is a #include preprocessor?

1079


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3860


What's the best way of making my program efficient?

1041


How can I handle floating-point exceptions gracefully?

1110


Can an array be an Ivalue?

1057


write a program for the normal snake games find in most of the mobiles.

2219


Explain enumerated types in c language?

993


What are the types of assignment statements?

1010