Then, here my small contribution ;) Based on the abstraction [urne] (thx to Frank) from the 'purepd' section on Sourceforge and the messages [add2 $1( instead of [list]x[t l] to accelerate things (thx to Roman). ++
Jack
Le mardi 16 mars 2010 à 18:13 +0100, Jack a écrit :
Very clever method. I have nothing to add :) ++
Jack
Le mardi 16 mars 2010 à 16:01 +0100, Frank Barknecht a écrit :
Hallo, Jack hat gesagt: // Jack wrote:
I just make this abstraction : [list-unique-random] to get a list with random numbers (integers). I didn't see it in the list-abs or in sfruit (am i wrong ?).
You can determine :
- the range of the random number with an argument or dynamically.
- the size wanted of you list with a message.
Maybe, this is not an optimized abstraction, so people can modify it. Frank, if you want, you can modify it (my english is not very good) and add it to list-abs.
Thanks a lot for it, Jack. I guess, an object like this would be good to have in list-abs. I've used the functionality in the past, but never bothered with an abstraction. I have used my urne.pd then, which is in the "purepd" section on Sourceforge and a clone of Max'/Cyclone's [urn] (but not zexy's [urn]!). It seems to deal a bit better with huge numbers like building a list of 1000 unique numbers without stack overflows. It's attached.
Ciao _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list