Random picking of sounds as variables
I am setting an experiment about sound comprehension. Here is the general loop of the experiment :
As you can see, there are 96 elements executed. The plan of the experiment is 2 * 6 * 8.
The elements are regrouped as follow : 2 main conditions 'a' and 'p', 6 conditions of silence by main conditions and 8 sentences by silent's condition.
I already have 12 files (silent conditions), each filled with 96 sentences. Now, what I want is to prepare 96 sentences in a inline script, so when I start the experiment with a subject, the program will pick randomly 96 sentences with this rule :
8 sentences * 12 silent conditions.
The general idea is to counterbalance the sentences between subjects. Unfortunately, I am not very familiar with python functions. So if people can help me to design the script it will be wonderful.
I hope this is clear,