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 / abhradeep chatterjee

I am Sorry, I executed the Code and it does not work.
Thanks to Rama Krishna.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

631


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

646


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

636


Why structure is used in c?

600


Is struct oop?

590






Describe the order of precedence with regards to operators in C.

638


What are the three constants used in c?

551


What are pragmas and what are they good for?

580


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

762


What is the symbol indicated the c-preprocessor?

702


Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

5066


How can I manipulate strings of multibyte characters?

643


How can I find out the size of a file, prior to reading it in?

631


what are the advantages of a macro over a function?

650


Is that possible to add pointers to each other?

907