JuliaLang/julia — pull request #8273 by ivarne (2014-09-08 11:07:04+00:00)
Title: Fix #8257

This new version of `rand(r::Range)` and `rand!(r::Range,a::AbstractArray)`
uses getindex instead of trying to calculate the exact value of the
range. This is good because we avoid duplicating the getindex logic in
`FloatRange`