Skip to content

Commit

Permalink
remove redundant rand! method
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet committed Sep 30, 2014
1 parent ea2bd4b commit e2b14a1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions base/random.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,6 @@ end

rand{T}(r::Range{T}) = r[rand(randintgen(length(r)))]

function rand!(g::RandIntGen, A::AbstractArray)
for i = 1 : length(A)
@inbounds A[i] = rand(g)
end
return A
end

function rand!(r::Range, A::AbstractArray)
g = randintgen(length(r))
for i = 1 : length(A)
Expand Down

0 comments on commit e2b14a1

Please sign in to comment.