Pick a uniformly random element from array. Throws if array is empty — guard at the call site if that's possible.
array
Pick a uniformly random element from
array. Throws ifarrayis empty — guard at the call site if that's possible.