Random order of trials - but restrict it so no two consecutive trials
Apologies if this has been asked before but I would like to randomise order of trials across multiple cycles but restrict it so that it doesn't generate a list with two of the same trials in a row.
For more info on my exp, I have 8 different unique types of trials - see image below:
At the moment, if I run the above as is, it generates a list of trials that is totally random. But I would like it to not have two consecutive trials in a row. In fact I would like it to not have two consecutive "TargetQuads" in a row (i.e., make sure the previous trial doesn't have the same TargetQuad value as the current trial).
Is it possible to do something like this using the loop component or will I need to use inline script to generate my trials?
Thanks in advance (and apologies if this is a duplicate or if my questions is unclear!).