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

What is the ANSI C Standard?

780


What is wrong with this program statement?

610


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

1902


What is string length in c?

614


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

2936






hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1673


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

766


Why isn't it being handled properly?

645


How do I copy files?

623


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

632


Is javascript written in c?

584


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1522


Explain what will the preprocessor do for a program?

605


How do I get an accurate error status return from system on ms-dos?

649


How important is structure in life?

592