Skip to content

Commit

Permalink
Change randbool to rand(Bool) in vonmises sampler (#491)
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 authored and ararslan committed Jul 19, 2016
1 parent a71f7b4 commit 3bbaf7b
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 3bbaf7b

Please sign in to comment.