Play each element inlist in random oder

Prand plays one element from the list ,Pxrand same but never twice in a row
Is there a method that reads each element in the list but at random and then moves on ?

(
Pdef(\shame,
	Pbind(\instrument,
		\sini,
		\dur,1/4,
		\freq,Pseq([
		Pseq([48,46,45,42],2),
		Prand([71,73,80],1),
		],inf),
		\amp,Pseq([0.2,0.6,0.7,0.5],inf),
		\dec,Pseq([0.2,0.2],inf),
))
)

Hm , set Prand repeat to 3 would scan the Prand 3 times so that’s a solution
Just wondering if there is something that would read them all in random order with a repeat value to 1

Pshuf does that. Works like Pbind, but the list is shuffled.

1 Like