Random struct() question?

I was learning some strudel and i've noticed you can create a random struct()

something like:
$: s("glitchperc").struct(rand.round().seg(16)).n(irand(10))

i was wondering if this is possible to do in tidal cycles with the struct function.

Thanks!

can't test right now, but would either of these work?

d1 $ struct "[t?]*16" # s "bd"

or maybe

d1 $ struct "[t|~]*16" # s "bd"
1 Like

It did work, but with a small modification.

d1 $ struct "[t?]*16" $ s "bd"