If this template helps then use it. If not then just delete and start from scratch.
OS : Win10
PsychoPy version : 3.0.5
Standard Standalone? (y/n) : yes
I am running a study where 4 stimuli are presented a number of times per block. Specifically, I have a .csv file with 24 rows, and there are 4 stimuli in one of the columns of the .csv file with each stimulus repeating 6 times. For each block, I need the rows to be randomly selected. However, I also need to make sure each stimulus is never repeated. As an example, the 4 stimuli are: lavender, lilac, lemon, pear. Each should be presented 6 times per block, and in a random order without any stimuli presented twice. For instance, if they see a lemon, the next stimulus must be random, but it cannot be a lemon again. I cannot figure out a code component I could put at the beginning of each block that would achieve this. Any help would be greatly appreciated. Thank you!