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
Explain what is the difference between a string and an array?
What are the parts of c program?
what type of questions arrive in interview over c programming?
Why isn't it being handled properly?
What is class and object in c?
What is the use of header?
Explain the difference between #include "..." And #include <...> In c?
Explain how can I manipulate strings of multibyte characters?
What is the difference between the local variable and global variable in c?
What is the code for 3 questions and answer check in VisualBasic.Net?
What is the difference between a free-standing and a hosted environment?
What are the uses of a pointer?
Why do we use return in c?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
What is function prototype?