Skip to content
New issue

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

rand(rng::AbstractRNG, r::Range) missing #5978

Closed
curufinwe opened this issue Feb 27, 2014 · 2 comments
Closed

rand(rng::AbstractRNG, r::Range) missing #5978

curufinwe opened this issue Feb 27, 2014 · 2 comments
Labels
randomness Random number generation and the Random stdlib
Milestone

Comments

@curufinwe
Copy link

It would be nice to have a function like that in the std. lib.

@rfourquet
Copy link
Member

I implemented it, but based on two unmerged PR, so will wait to see if they are accepted.

@ViralBShah
Copy link
Member

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

@ViralBShah ViralBShah added this to the 0.4 milestone Nov 18, 2014
bjarthur pushed a commit to bjarthur/julia that referenced this issue Nov 21, 2014
@ViralBShah ViralBShah added the randomness Random number generation and the Random stdlib label Nov 22, 2014
waTeim pushed a commit to waTeim/julia that referenced this issue Nov 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
randomness Random number generation and the Random stdlib
Projects
None yet
Development

No branches or pull requests

3 participants