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.
I don't know if this is simpler or not, but here is a method for grabbing a random item from a list:
gDistractorList = [1, 2, 4]
Thanks Rob, That will take care of my problem. Another query: is a question of this level better addressed in the "Basic" forum? New at this.
Since the question is about using Lingo to accomplish a task, then, in my thinking, the Lingo forum is the correct place for it. I troll both forums so I probably would have found the question in any case.