Hi all,

I'm very new to flash and trying to make a quiz that pulls five random questions from an XML file with 35 questions. I have a randomizer in there currently, but it doesn't seem to be very good for two reasons. First, it only pulls from about the first 14 questions and secondly, it pulls the earlier questions a lot more frequently than the later questions. Below is the code I'm using for the randomizer. Is there something better I could be doing? If it would help to see my full code, let me know and I'll post all of it. Thanks!

// Randomize orders
for (i=0; i<quizItems.length; i++)
{
var indexToSwap=int(Math.random()*quizItems.length);
var temp=quizItems[indexToSwap];
quizItems[indexToSwap]=quizItems[i];
quizItems[i]=quizItems[indexToSwap];
quizItems.splice(indexToSwap,1);
}