Added util to choose random number of elements in array