Assigning SOA randomly without repetition with Inline Script
I'm trying to run a loop of 105 Prime-Target stimuli while each Prime-Target pair will be called randomly and will be assigned with a random SOA from 105 SOAs list. I'm having a problem with the SOAs assigning.
Before the Prime-Target loop, I set in Inline_Script the variables as follow:
import random self.experiment.set("ChooseSOA",0) ChooseSOA=[100 for i in range(50)]+[200 for i in range(55)] random.shuffle(ChooseSOA)
Then, in the sequence running in the loop I wrote:
Then, I added a sketchpad with the duration "SOA".
when I'm running the experiment, the OpenSesame says:'int' object has no attribute 'pop'