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.
1 parent 0978251 commit 8eba7c4Copy full SHA for 8eba7c4
stdlib/Random/src/RNGs.jl
@@ -539,8 +539,8 @@ end
539
540
#### from a range
541
542
-for T in BitInteger_types # eval because of ambiguity otherwise
543
- @eval Sampler(rng::MersenneTwister, r::UnitRange{$T}, ::Val{1}) =
+for T in BitInteger_types, R=(1, Inf) # eval because of ambiguity otherwise
+ @eval Sampler(rng::MersenneTwister, r::UnitRange{$T}, ::Val{$R}) =
544
SamplerRangeFast(r)
545
end
546
stdlib/Random/src/misc.jl
@@ -53,10 +53,10 @@ number generator, see [Random Numbers](@ref).
53
# Examples
54
```jldoctest
55
julia> srand(0); randstring()
56
-"Qgt7sUOP"
+"0IPrGg0J"
57
58
julia> randstring(MersenneTwister(0), 'a':'z', 6)
59
-"oevnou"
+"aszvqk"
60
61
julia> randstring("ACGT")
62
"TATCGGTC"
0 commit comments