Selects an index from array. 0 being first, 1 being second. Reverse indexing also works: -1 being last, -2 being second last...
If index exceeds length of array, undefined is returned
default: leave array in same order (default option) random: shuffles array before further processing function: function that sorts values
default
random
Function to select a single value from array
Selects an index from array. 0 being first, 1 being second. Reverse indexing also works: -1 being last, -2 being second last...
If index exceeds length of array, undefined is returned