OS (e.g. Win10): MacOs Mojave 10.14.6
PsychoPy version (e.g. 1.84.x): 3.2.4
Standard Standalone? (y/n) y
What are you trying to achieve?: play a sequence of sounds randomly chosen from an excel file
What did you try to make it work?:
I’m trying to create a routine where a sequence of 4 sounds (one per second) randomly chosen from a list of 10 in an excel file (sounds.routine.xlsx) is played without repeating numbers already selected.
What specifically went wrong when you tried that?:
I entered a code compenent (as you can see from the screenshot) and I have imported np.choice. Then I selected the rows (as you can see from the screenshot) in the “loop properties window”.
The problem is that using np.choice only one number is reproduced and not the entire sequence of four randomly chosen numbers one per second without repetitions.
How can I do this?
Thanks in advancesounds_routine.xlsx (8.6 KB)