3 Replies Latest reply on Jun 7, 2009 3:51 PM by robdillon

    random selection from a list

    Grover1

      I’m setting up a multiple-choice question, and I want to re-arrange the position of the button sprites representing the correct answer and distractors.

       

      I can randomly select one of the sprites via gDistractorLoc = random(4). The random function fails me after that.

       

      Is there a means of randomly selecting one of the entries from a list, e.g. gDistractorList = [1, 2, 4] or [1, 4]?

       

      I realize that I am perhaps complicating the process, and I'd be grateful for a simpler approach.