Question: How can you write a program that should randomly generate an integer between 1 and 10 ? 

Answer: Us the random number generator function in the programming language you are using..  usually something like Rand(0)
This question from the Yahoo Q&A forum is categorized in the topic: Politics & Government