Skip to content

Commit

Permalink
Change randbool to rand(Bool) in vonmises sampler
Browse files Browse the repository at this point in the history
As per JuliaLang/julia#9569, `randbool()` has been deprecated in favor of `rand(Bool)`.
  • Loading branch information
jkbest2 committed May 2, 2016
1 parent b67be40 commit 5a16c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/samplers/vonmises.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function rand(s::VonMisesSampler)
end
end
acf = acos(f)
x = s.μ + (randbool() ? acf : -acf)
x = s.μ + (rand(Bool) ? acf : -acf)
end
return x
end

0 comments on commit 5a16c75

Please sign in to comment.