Randomization of stimuli


I have an experimental set up where i have x number of routines.
I generate a random number of trials and based on the number, i call the routine.

I have seen the videos/write up that create a csv with the routineA, routine B , routine C (if you want routineA active, routineA=1, but routineB and routineC is 0) and it samples those rows.

However, what I would like is a file with randomized rows of rowA, rowB, rowC numbers where the randomization is generated rather than fixed. Is this possible even if it is not via trial loops?

In the picture posted, i have another question. Say you have the numbers.csv, can you have a row of different values, say:

and then you can check if value==a or value==b or value==c or value==d or value==e.

OS (e.g. Win10): mac sierra
PsychoPy version (e.g. 1.84.x): 2020.2.3
Standard Standalone? (y/n) If not then what?: scratch build

I’m sorry but I don’t quite understand your question.

However, the idea that you might have 29 different loops in your experiment is somewhat concerning.

In a code component you can check

if Value == 'a' or Value=='b' or Values=='c':