I like this solution, too -- I would probably use an [until] to control the loop, however -- this will help for huge lists that might freeze Pd otherwise.
About "only vanilla" -- one of my favorite things about the list-abs library is that the abstractions often use other abstractions from the library, so I try to use them when I can in a way that might be pedagogically useful... I think yours might be a little more efficient at first glance.
MB
On Fri, Nov 6, 2009 at 11:12 PM, Stephen Lucas s9lucas@gmail.com wrote:
This might be a simpler solution using only vanilla objects; I think I debugged it well enough.
The second inlet for seed value is not essential if you want to switch it back to the route method.
-Stephen
On Fri, Nov 6, 2009 at 8:51 PM, Matt Barber brbrofsvl@gmail.com wrote:
Hello,
Attached is [list-shuffle], which should randomly shuffle the elements of an incoming list. I assume that something like this already exists, but I couldn't find it on a cursory search so I thought I'd send it along on the off-chance that it hasn't been included or that it might help. Of course I'd welcome improvements.
Thanks,
Matt
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list