How to present a sound randomly in between trials?

Hello,
What i did 4 days ago was to create 12 inner loops (8 dot loops and 4 siren loops) and a randomizer outer loop:

dot loops (dots_1 = 6 trials, dots_2 = 10 trials, dots_3 = 4 trials, dots_4 = 6 trials ,dots_5 = 8 trials, dots_6 = 6 trials, dots_7 = 6 trials, dots_8 = 14 trials) = 60 trials

siren loops ( siren_1 to siren_4 = 1 trial each) = 4 trials

randomizer outer loop = present a random combination of inner loops for each participant.

then i randomized my inner loops using the method described in the link below:
https://discourse.psychopy.org/t/randomizing-blocks/23590

and it’s now working i expect.