Return number of random elements from array