February 15, 2009
Don:
> arr[random(0..arr.length)]
> is likely to be an _extremely_ common usage pattern. That argues very
> strongly for "[)".

For that there's choice():

choice(arr)

Bye,
bearophile