UndefValError in Julia

#1
_/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> rand(MersenneTwister(0), Dict(1=>2, 3=>4))
ERROR: UndefVarError: MersenneTwister not defined
Stacktrace:
 [1] top-level scope at none:0

I thought as basic as “MersenneTwister”, it is built in with Julia already. Can anyone please give me a hint?

0 Likes

#2

using Random

1 Like