Skip to content

Commit c64c552

Browse files
committed
add srand in doc
1 parent 08ad6e9 commit c64c552

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/random.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,8 +1628,8 @@ and the digits 0-9. The optional `rng` argument specifies a random
16281628
number generator, see [Random Numbers](@ref).
16291629
16301630
# Examples
1631-
```julia-repl
1632-
julia> randstring()
1631+
```jldoctest
1632+
julia> srand(0); randstring()
16331633
"c03rgKi1"
16341634
16351635
julia> randstring(MersenneTwister(0), 'a':'z', 6)

0 commit comments

Comments
 (0)