Is it better to select random data with pure SQL, or just select entire table and shuffle it? If pure SQL is better could someone show me an example of the most efficient way of doing it?
Also is it a good idea to save this selected data into a session variable? I want to make quiz with one question per page and with ability to get back to answered questions and change its answer. The session would save a double array of questions and answers to them that user picked. Or maybe there is a more efficient way of doing this?