We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be nice to have a function like that in the std. lib.
The text was updated successfully, but these errors were encountered:
I implemented it, but based on two unmerged PR, so will wait to see if they are accepted.
Sorry, something went wrong.
Which PR is this? Seems like we should make this work.
julia> r = MersenneTwister(5); julia> rand(r, 1:10) ERROR: `rand` has no method matching rand(::MersenneTwister, ::UnitRange{Int64}) julia> rand(r) 0.5303646605536807 julia> rand(1:10) 6
0054116
rand sampling from an array accepts an optional rng
rand
f172a45
Fixes JuliaLang#5978.
ca7ff57
No branches or pull requests
It would be nice to have a function like that in the std. lib.
The text was updated successfully, but these errors were encountered: