I am trying to implement some sort of a shuffle. What I am trying to do is a random shuffling of an array whose contents were records from a database. I am basically trying to shuffle/randomize, questions, so that different users will have different versions of questions in an exam, whose questions were extracted from a pool in a database, and shuffled. Can anybody out there help me out? Coding needed in PHP... thanks.
- Richard -
array_shuffle(), or you can randomize the order at database level, which is faster - for mysql use ORDER BY RAND()
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php