Random sound in pattern

Hello people,
I have something like this...

d1  $ stripe 3 
    $ slow 4
    $ n "7(5,8)" 
    # sound "kick" 
    # pan (cat [square, sine])

right now the pattern plays the 7th sound of the folder "kick".
How can I instruct tidal to play a random sound each time the Euclidian pattern ticks?

Thank you!

Hey Terumi,
you can give the structure with the sound and use irand as input for n.
The followng will pick randomly one of the first 8 samples in the kick folder:

d1  $ stripe 3 
    $ slow 4
    $ sound "kick(5,8)" 
    # n (irand 8)
    # pan (cat [square, sine])
1 Like

Oh thank you!

1 Like

Also, if you want to separate the sound and the structure, you can use struct:

d1 $ struct "t(5,8)" $ sound "kick" # n (irand 8)

PS: didn't know about the stripe function, thanks for making it known to me!