Forums > MaxMSP

Random from list

February 15, 2010 | 9:08 pm

Hi All,

Does anyone know of an object for or method of randomly choosing from floats within a list?

Thanks
Jack


February 15, 2010 | 9:48 pm

Have a look at ZL scramble


February 15, 2010 | 9:51 pm

Or something like this?

– Pasted Max Patch, click to expand. –

February 15, 2010 | 10:29 pm

Brilliant, Thank you.

Both are great approaches.


February 16, 2010 | 2:22 am

@7nches – just curious, what’s the point of the [t l l] object joined to the list/message outlet? doesn’t the max order of execution output in the same order as the trigger, making it superfluous? is there something i’m missing?


February 16, 2010 | 3:14 am

@tdaeik, you’re right, it’s totally useless in this case. I couldn’t tell you why I put it there if I wanted. I did this pretty fast, without thinking too much about optimization.


February 16, 2010 | 3:21 am

cool. was just wondering,,


February 16, 2010 | 9:42 am

I’d consider it good style. It improves readability, avoids errors when you go back to a patch and move things around, and takes next to 0 computing. Becomes more important when your patches get bigger though.


Viewing 8 posts - 1 through 8 (of 8 total)