Random from list

Jack James's icon

Hi All,

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

Thanks
Jack

tegid o's icon

Have a look at ZL scramble

7nches's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Or something like this?

Jack James's icon

Brilliant, Thank you.

Both are great approaches.

tdaeik's icon

@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?

7nches's icon

@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.

tdaeik's icon

cool. was just wondering,,

Bas van der Graaff's icon

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.