Selects one or more random elements from an array.