Random from list
Does anyone know of an object for or method of randomly choosing from floats within a list?
Have a look at ZL scramble
Or something like this?
----------begin_max5_patcher---------- 467.3ocyVFsaCBBEF9Z8ofv0sFAzV6taOGKMKXk1xhBMJMqqM8ce.pasatMZ l01avvgCG+4ieDO36ASk6XUPvCfm.ddG787rgLA7Z56AKn6VjSqroAWlKEaK fipGhmYCJSeYLJtM3RoPInEL6POVxo4sinmIWjyT1Rg9LnbqpMJ9jhTw2aKB JLHrIbclp21vpEsQOTEbD.lREqff4M4sgpVrlKV8bIagpNUbroL.LlXdT2Ak DDBlalxQeeSyHGwff8pdQ2ttTrc1WBTARA7tfC5l.GKSzrgKT+NZlDYoA1BE BNHt+QyXTGbI4BwBtSrftPr3JNlRtd3PAxA4cPjo2Dihwj3xgmdgHErpJ5J1 2PRX.l.BCP3HcaDACvAjHSDcaGjJ9l3cbgRwHq8Ip9wj903rW6aXhN3AoW3Q +6bpOLMah04DcM9paIUjI65NI7c8mWpMKQWEjncIB05ttI5N0kzbe7rY+hMw V.XNW70eYwVPS7yAUkba4hVIzr3AgeHiLVkhKnJtTbZNwmkzZdVFyNd6hqfm sQp2iazvOrq4rjbQS3gWRHGjDZvjDwkMNzfRoDWjzfBIrCJJYPYzTGYzvpn+ xZSFTEE6.il9OTjtyQ+2An4QpPF -----------end_max5_patcher-----------
Brilliant, Thank you.
Both are great approaches.
@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?
@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.
cool. was just wondering,,
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.