PDA

View Full Version : randomizing a dataset


country_gail
05-03-2007, 04:10 PM
I've got an xml quiz that I've made with components. It works, but i was wondering if it's possible to randomize the way the questions come up. How would I go about doing this?



Can a random set of numbers be added to the dataset as it's loaded? Or would the user be able to pull off random questions as they are going through it? I'm pretty confused so may be thinking completely wrong.

Here's my xml if it makes a difference:

<quizQuestion>
<question questionID="1"> </question>
<answerA> </answerA>
<answerB> </answerB>
<answerC> </answerC>
<answerD> </answerD>
<answerE> </answerE>
<correctAnswer> </correctAnswer>
<image> </image>
<feedback> </ feedback>
</quizQuestion>



I'm not very good at actionscripting and I only got this far though many days (weeks) worth of work. More code and easier to understand is definately better.

Thanks