Returns the k-th element of an array anArray using a random pick function.
anArray
if anIndex is greater than or equal to the length of anArray
anIndex
the array to consider
the index of the element to find
the k-th element of anArray
Returns the k-th element of an array
anArrayusing a random pick function.Throws
if
anIndexis greater than or equal to the length ofanArray