PennController for IBEX › Forums › Support › Is it possible to shuffle trials according to a % of times? › Reply To: Is it possible to shuffle trials according to a % of times?
Dear Larissa,
Both solutions use the same set of four labels, namely "A"
, "B"
, "C"
and "D"
The first piece of code creates a total of 100 trials: 70 A trials, 10 B trials, 10 C trials and 10 D trials. The text of the button in the first A trial is “A0”, in the second A trial it is “A1”, etc. and similarly for the “B” trials (“B0”, “B1”, etc.), the “C” trials and the “D” trials
The second piece of code creates a total of 4 trials: 1 A trial (button text: “A”), 1 B trial (button text: “B”), 1 C trial (button text: “C”) and 1 D trial (button text: “D”). However, the Sequence
repeats the A trial 70 times, the B trial 10 times, the C trial 10 times and the D trial 10 times
Both pieces of code use shuffle
in Sequence
, resulting in a balanced distribution in both cases
Jeremy