Hello
Online I currently use the following to assign randomly four different stimuli lists based on default participant number.
stimList = " "
if int(expInfo['participant'][:2]) % 4 == 0:
stimList = "Liste4.xlsx"
elif int(expInfo['participant'][:2]) % 3 == 0:
stimList = "Liste3.xlsx"
elif int(expInfo['participant'][:2]) % 2 == 0:
stimList = "Liste2.xlsx"
else:
stimList = "Liste1.xlsx"
Note that this does not guarantee a balanced distribution of lists in the end. If you want a balanced distribution of lists use the shelf or the vespr tool New web app. VESPR Study Portal.
Best wishes Jens