Reply To: Randomize blocks and trials but keep breaks in the same order

PennController for IBEX Forums Support Randomize blocks and trials but keep breaks in the same order Reply To: Randomize blocks and trials but keep breaks in the same order

#10371
Jeremy
Keymaster

Hi Chloris,

Should pause_1 always appear after block_1 regardless of where block_1 ends up, or should it always appear after the first block to run, regardless of whether that’s block_1, block_2 or block_3? Assuming you mean the latter, you can achieve it like this:

var blocks = [randomize("block_1"),randomize("block_2"),randomize("block_3")];
fisherYates(blocks);

Sequence("consent", blocks[0], "pause_1", block[1], "pause_2", blocks[2], "send", "completion")

Jeremy