On Monday, August 11, 2014 1:34:05 PM UTC-4, Steven G. Johnson wrote: > > On Monday, August 11, 2014 9:04:23 AM UTC-4, Clemens Heitzinger wrote: >> >> Works like this (on 0.3.0-rc3): > > > Clemens, I think Jeff wanted to generate a random Float64 array from an > int32 size, not an array of random Int32 values. > > I added a pull request (https://github.com/JuliaLang/julia/pull/7956 > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FJuliaLang%2Fjulia%2Fpull%2F7956&sa=D&sntz=1&usg=AFQjCNHptIDBo7EXQTYMiRqpzYYT9dp3Fw>) > > that fixes this. >
Excellent, I had one too just in case. I also tried changing Int... to Integer... but that had problems because it needs to convert to a Dim I ended up doing essentially an Int32... to dim via convert. Maybe that's too inefficient... e.g. @approximately line 120 rand(::Type{Float64}, dims::Int32...) = rand(Float64,convert(Dims,dims))