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
What is meant by type casting?
What are linker error?
4. main() { int c=- -2; printf("c=%d",c); }
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
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
Why header files are used?
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
Explain what are compound statements?
a c code by using memory allocation for add ,multiply of sprase matrixes
What is the method to save data in stack data structure type?
What is the hardest programming language?
Explain how are 16- and 32-bit numbers stored?
Tell us something about keyword 'auto'.
What is the difference between text and binary modes?
What is the correct code to have following output in c using nested for loop?