Hi there,

I’ve been struggling with the following problem for quite a while:

Say I have a condition file that contains 10 different stimuli. 4 of these stimuli have to be repeated 8 times and 6 of them have to be repeated 4 times, resulting in a total of 56 trials. So my condition file now has 56 rows that are repetitions of 10 different stimuli. Is there a smart way to randomize the trials so that no identical stimulus is presented directly after each other?

I do know that PsychoPy can handle the randomization in general, but as the file contains identical rows, I presume there is a good chance that two identical rows are selected after each other just by chance.

Thanks for any help or idea!