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


Please Help Members By Posting Answers For Below Questions

write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

1785


Explain high-order and low-order bytes.

667


How is a macro different from a function?

656


How can I convert a number to a string?

608


What is the deal on sprintf_s return value?

645






What is the right way to use errno?

621


Is main is user defined function?

597


What is wrong with this statement? Myname = 'robin';

822


Where are c variables stored in memory?

599


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

603


What is 2c dna?

608


What is the difference between the = symbol and == symbol?

629


Can you define which header file to include at compile time?

589


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2190


What is the importance of c in your views?

596