PennController for IBEX › Forums › Support › Randomization with no more than three items of same category in a row › Reply To: Randomization with no more than three items of same category in a row
November 29, 2022 at 6:18 pm
#9745
![](https://www.pcibex.net/wp-content/uploads/2018/10/IMG_8365-e1540835663655-150x150.jpg)
Keymaster
Hi Dimitra,
Assuming you are willing to merge together the four blocks of experimental trials (otherwise the items sharing the same picture would never appear in a row to start with, since you seem to use each picture only once per block) you can make it work as in this project (I have updated some commands to match the modern PennController syntax — you also seemed to use the same code for all your trials, practice and experimental, so I use a single Template
command)
Jeremy