[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] "urn" type function
n = 10;
a = Array.series(n,0,1); // create a series of values
n.do({
v = a.takeAt(a.size.rand); // take one out at random
v.postln;
});
On Friday, December 6, 2002, at 07:02 AM, mules wrote:
Hi,
I would need an object to randomly pick a value fron a list with no
repetition (like urn in Max).
Any help ?
Romain
--
--- james mccartney james@xxxxxxxxxxxxxx <http://www.audiosynth.com>
SuperCollider - a real time synthesis programming language for the
PowerMac.
<ftp://www.audiosynth.com/pub/updates/SC2.2.16.sea.hqx>