digitalmars.D - Re: default random object?
- bearophile <bearophileHUGS lycos.com> Feb 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
Feb 15 2009