Why are you trying to shuffle in the database? Extract the questions and ID into a dataTable and randomly select which ID will be next (or shuffle if you want the order to be established before the test begins). You could easily record which question was the previous one using an array or arrayList.
mani-hellboy commented: see rules and regulations -1
hericles 289 Master Poster Featured Poster
hericles 289 Master Poster Featured Poster
hericles 289 Master Poster Featured Poster
hericles 289 Master Poster Featured Poster
hericles 289 Master Poster Featured Poster
hericles 289 Master Poster Featured Poster
hericles 289 Master Poster Featured Poster
hericles 289 Master Poster Featured Poster
hericles 289 Master Poster Featured Poster
hericles 289 Master Poster Featured Poster
hericles 289 Master Poster Featured Poster
hericles 289 Master Poster Featured Poster
hericles 289 Master Poster Featured Poster
hericles 289 Master Poster Featured Poster
mmazeemahmad commented: thnaks +1
hericles 289 Master Poster Featured Poster