Skip to content

Commit

Permalink
Fix 8506: randi -> rand(1:n)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahao committed Sep 28, 2014
1 parent 049e304 commit 3e5ab09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/manual/parallel-computing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ the variables are read-only::

a = randn(1000)
@parallel (+) for i=1:100000
f(a[randi(end)])
f(a[rand(1:end)])
end

Here each iteration applies ``f`` to a randomly-chosen sample from a
Expand Down

0 comments on commit 3e5ab09

Please sign in to comment.