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 / rama krishna
First program is wrong ,randomize is undefined you just
check it.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
write a program to print largest number of each row of a 2D array
What is queue in c?
What is the difference between struct and union in C?
What are types of functions?
Explain what is the advantage of a random access file?
difference between object file and executable file
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
Explain what is meant by 'bit masking'?
Explain what are global variables and explain how do you declare them?
What are the standard predefined macros?
What is void main ()?
What is getche() function?
Are global variables static in c?
What is the difference between class and object in c?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above