[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] "urn" type function



Title: Re: [sc-users] "urn" type function
Hi Roland,

I would need an object to randomly pick a value fron a list with no
repetition (like urn in Max).
Any help ?

You can use the Pshuf pattern.


u = Pshuf([ 1, 2, 3, 4 ]).asStream;

5.do({ u.next.postln; });

u.reset;

5.do({ u.next.postln; });

best,
adc

-- 
--
Alberto de Campo
ACADEMY OF MEDIA ARTS
Peter-Welter-Platz 2
D - 50676 Cologne / Germany
phone  : ++49-(0)221-20189-141
e-mail : adc@xxxxxx
--