Let's say I have a list of 15 questions which I want to show to a participant one at a time. However, before each question I want to ask the participant if they'd like to answer another question from that set or if they'd like to exit the study. If the participant indicates they'd like to answer a question, one question should be randomly taken from the list and shown to the participant. This loop should continue until the participant has exhausted the questions available or until the participant says indicates he'd like to leave the study.
So, for example, a participant would be asked the following
*question: Would you like to answer one more question?
Yes, show me one question
No, I'd like to end the study
*save: question_decision
If Yes --> Pull a question from a list of questions and add one to counter. If No --> Exit Study.
I imagine this has to be done with a collection and goto
and label
statements which loop until the value of question_decision
is "No." However, I couldn't figure out how to randomly pull a question and its associated answer choices for the purpose of this task. Any thoughts?