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

Lacking randn() #80

Closed
ZeppLu opened this issue Aug 24, 2018 · 2 comments · Fixed by JuliaLang/julia#44714
Closed

Lacking randn() #80

ZeppLu opened this issue Aug 24, 2018 · 2 comments · Fixed by JuliaLang/julia#44714

Comments

@ZeppLu
Copy link

ZeppLu commented Aug 24, 2018

Neither rand(Dec64) nor randn(Dec64) works.

@stevengj
Copy link
Member

stevengj commented May 9, 2019

A simple solution would be Dec64(rand(Float64)), of course, but that doesn't use all of the significand bits; a more correct solution would require something lower-level.

@jmkuhn jmkuhn mentioned this issue Jun 9, 2020
@stevengj stevengj changed the title Lacking rand() / randn() Lacking randn() Mar 22, 2022
@stevengj
Copy link
Member

rand() is now implemented. randn() could be implemented via Box–Muller, ideally as a fallback method in Julia Random itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants