Random colors in the stimulus block

Hello everyone. I am aware that this problem may seem easy enough to deal with, but I am not at all proficient with the python.

Me and my team are working on a student project but there was a problem. Namely, we want the sequence of 6 stimuli to appear in a loop that is executed 10 times. We want one stimulus to appear once in red in each iteration. The problem is that the red stimulus has to be different every repetition of the loop and we don’t know how to do it. I will be grateful for your help!

You could have a list of 6 colours that you shuffle every iteration of the inner loop and address using inner loop name .thisN to select the current colour.

1 Like