Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

rand(UInt32) gives low-quality results #655

Closed
chrstphrbrns opened this issue Mar 28, 2020 · 0 comments · Fixed by #656
Closed

rand(UInt32) gives low-quality results #655

chrstphrbrns opened this issue Mar 28, 2020 · 0 comments · Fixed by #656
Labels

Comments

@chrstphrbrns
Copy link
Contributor

chrstphrbrns commented Mar 28, 2020

Describe the bug
rand(UInt32) gives low-quality results

To Reproduce
The Minimal Working Example (MWE) for this bug:

sum(isodd.(CuArrays.rand(UInt32, 10000)))

Expected behavior
Values should be evenly distributed. Instead there are--for example--very few odd numbers

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

Successfully merging a pull request may close this issue.

1 participant