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 is meant by type casting?

629


What are linker error?

614


4. main() { int c=- -2; printf("c=%d",c); }

1370


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

615


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

920






Why header files are used?

646


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1425


Explain what are compound statements?

605


a c code by using memory allocation for add ,multiply of sprase matrixes

2304


What is the method to save data in stack data structure type?

607


What is the hardest programming language?

671


Explain how are 16- and 32-bit numbers stored?

784


Tell us something about keyword 'auto'.

666


What is the difference between text and binary modes?

648


What is the correct code to have following output in c using nested for loop?

613