It looks like you're new here. If you want to get involved, click one of these buttons!
Hi,
I've been programming my experiment in Javascript (for OSWeb), and I need to randomize the order of blocks.
What should I code at the beginning of experiment in order to get my blocks randomly presented between participants?
Many thanks,
MG
Hi @MicolG ,
The simplest solution seems to:
loop
sequence
Run-if
By doing so, you don't need any JavaScript. Does this answer your question?
I attached a small example experiment.
Cheers,
Lotje
Did you like my answer? Feel free to
Hi Lotje,
Thanks for your help, I managed to solve this out!
Have a good day
Micol
Comments
Hi @MicolG ,
The simplest solution seems to:
loop-sequencestructureRun-ifstatements in the top-levelsequenceto determine which block should be run, depending on the block id.By doing so, you don't need any JavaScript. Does this answer your question?
I attached a small example experiment.
Cheers,
Lotje
Did you like my answer? Feel free to

Hi Lotje,
Thanks for your help, I managed to solve this out!
Have a good day
Micol