allow rand(::Range) on all ranges, not just Real