I am developing a online exam project in that I have a table which has questions and every question has different marks.I am selecting questions in a random manner using newid(), now I am facing with a problwm , the problem is the questions are selected even after it reaches total (100) marks and also it the total comes to 98 the system selects a 3 mark question hence the total reaches more than 100.how to solve this problem. I have 1,2,3,4 mark questions.
Plz experts help me out to solve this problem
thanks in advance
raghul