We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GLOBAL_RNG
seed!
1 parent 074e8f4 commit 3818204Copy full SHA for 3818204
stdlib/Random/src/Random.jl
@@ -383,8 +383,8 @@ julia> rand!(rng, zeros(5))
383
rand!
384
385
"""
386
- seed!([rng=GLOBAL_RNG], seed) -> rng
387
- seed!([rng=GLOBAL_RNG]) -> rng
+ seed!([rng=default_rng()], seed) -> rng
+ seed!([rng=default_rng()]) -> rng
388
389
Reseed the random number generator: `rng` will give a reproducible
390
sequence of numbers if and only if a `seed` is provided. Some RNGs
0 commit comments