generating non repeating random number in java
<p>i am making a game which will ask different questions in java. questions are stored in some arraylist. 
My problem is that these questions should not be repeated. and if all questions has been asked then program should stop. i have used java random function. but it is failed . any help will be appreciable 
Regards</p>
