[PD] A couple new list-abs

Luke Iannini (pd) lukexipd at gmail.com
Thu Mar 6 11:48:35 CET 2008


Here's another quick pair, again inspired by Python libraries (sorry,
Python just seems to love lists as much as Pd .39+ and I do), this
time the random module.

[list-sample n] grabs a random bunch of n unique items from the
incoming list and outputs them as a new list.

list-shuffle is a shortcut to [list-sample]ing the same number of
items as were in the list originally, which results in a shuffled
list.

Cheers
Luke
-------------- next part --------------
A non-text attachment was scrubbed...
Name: list-sample-and-list-shuffle.zip
Type: application/zip
Size: 1586 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080306/5571c5d6/attachment.zip>


More information about the Pd-list mailing list