PsychoPy version: v2021.1.2
What are you trying to achieve?:
Hey, above you can see my flow. The loop ‘Trial’ is linked to an Excel file that supplies it with either pictures of words or of shapes. The loop is set to choose words at random. Each routine (‘frame’) in the loop presents the pictue (of word or shape) for a certain length of time - ex. ‘Frame_1’ does it for a duration of one frame, etc.
What I want to achieve is loop through each routine in a random manner with random pictures (from the Excel) until each picture has gone through each duration. Say if I have 30 pictures I want to start with a random picture (ex. pic number 7) presented at a random duration (ex. Frame_3), followed by another random picture in a random duration. Thus, until all pictures have gone through all durations randomly.
Currently the same random picture from the Excel goes through the given durations sequentially (say pic 7 runs throguh Frame_1, Frame_2, etc). How do I randomize this? In other words, how do I make the loop start at a random routine, go through this single routine (ex. Frame_3), change the picture it uses and start at a random routine again, until all pictures have gone through all routines?
I hope I was clear enough. I tried looking at coding solutions on the forum but could not figure anything out. Thanks!