I’m building a priming experiment in which participants will see a prime (P), followed by a target (T) and then a random number of fillers (F).
I want to show a random number of fillers on each trial (e.g, P T F F, P T F F F , P T F, etc,). However, I am struggling to do this. I have been able to use ‘Selected rows’ to randomise the filler stimuli that is selected but only one filler is currently shown per trial.
This is the code that I have used to randomise the filler selected:
#Rows of the Loop Selection Sheet
maxRows = 20
#Substract a small number to avoid floor(maxRows)==maxRows
maxRows = maxRows-0.0001
#Returns values only between 0 and maxRows
sheetRowIndex = str(floor(random()*(maxRows)))
Any help would be immensely appreciated.