choose list (array)
Choose an element at random from a list (array).
If no arguments are given, will return a lambda function which when called takes an argument which will be a list to be chosen from. This is useful for choosing random onset: vals for samples
Always returns a single element (or nil)
Introduced in v2.0
| # Example 1 | |
|
|
|
| # Example 2 | |
|
|
|