monica singh

monica singh

  • NA
  • 15
  • 7.5k

how to shuffle the position of answers and match correct ans

Jan 6 2016 12:08 AM
I have questions and answers in database , how should i shuffle the position of answers then match the marked option with correct answer.

i am getting problem in reshuffling , the answers , so i want to know the approach to shuffle,
Plus correct answer is stored as position, for eg , ques:i hav question what is capital of india, ans1:Mumbai, ans2: delhi, ans3: jaipur, ans4: agra, correctans:2,
so if reshuffle the position how will i match that new choice is correct or not.

Answers (1)