From 3bbaf7b7f4a7987bbc71b7ecbf94a36a04e9c0a9 Mon Sep 17 00:00:00 2001 From: John Best Date: Mon, 18 Jul 2016 19:47:35 -0800 Subject: [PATCH] Change randbool to rand(Bool) in vonmises sampler (#491) As per JuliaLang/julia#9569, `randbool()` has been deprecated in favor of `rand(Bool)`. --- src/samplers/vonmises.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/samplers/vonmises.jl b/src/samplers/vonmises.jl index b8f2ee32c..685437019 100644 --- a/src/samplers/vonmises.jl +++ b/src/samplers/vonmises.jl @@ -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