This code works fine for me in the Julia 1.4.2 REPL after
using Distributions
. How did you run it when you got the error?
When I run it once on a clean memory, it works. If I run it again, it
does not. But I learned
an easy fix:
using Distributions
import Distributions.Logistic
import Distributions.Normal
import Distributions.Gumbel