multiple choice form - random order of answers
in OpenSesame
I am building a word recall task in Open Sesame and thinking about using a multiple choice form as the user response. Is it possible to randomize the order of the answer options on the form?
Comments
I created a workaround using a bit of javascript (since I'll be running the experiment online). I created a javascript array with loop variables then randomized the array and filled the mcq options from the array.
Hello Mike,
How did you implement this? I need the code for my experiment so bad. Thank you so much in advance!
Soan
Hi @Soan ,
The easiest way (without having to write any coding) is to use the shuffle_horiz command in the script of the loop.
This thread might be of interest to you: https://forum.cogsci.nl/discussion/8051/shuffle-horiz-taking-values-from-other-rows
Check out this page of the documentation for information about this command:
Alternatively, Mike's solution works too (in fact, if you require some sophisticated shuffling, coding is the way to go). But if you simply require to shuffle the contents of variables in the loop, shuffle_horiz works just fine.
Best,
Fabrice.