i was working on an online learning system .. for testing.
i needed to take a specific number of random questions from each cateogory of questions. within each category i needed to take 2 questions from each difficulty level.
then at the end i had a big array of question id's .. well even though i chose random questions from the database, they were still in order by category and difficulty level.
i needed an array function that would just mix up the array so the test could be given in random order.
shuffle() is a beatuiful thing. may levels of randomness in my program so chances are very very slim that a user retaking the test will get the same questions .. not to mention even slimmer that they get the same questions in the same order.