The trial has two different repetitions randomly interspersed(3 or 30 repetitions), but how to achieve this?

Hi psychopy community,
Right now I have an experiment that has two conditions:1. Repeat the word 3 times on the screen before the judgment task; 2.Repeat the word 30 times before the judgment task.
This means that I have 144 trials in total,and in 77 trails subjects need to repeat words 3 times before making judgment tasks, and in the other 77 trails subjects need to repeat words 30 times.The trials of these two conditions need to be carried out randomly.
It’d be so glad if someone can help me out!


This is my condition file.

Good, I have solved my problem by myself. I inserted a code component into each of the two routines, Then my problem was solved.