-
Notifications
You must be signed in to change notification settings - Fork 4
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
Python random module is not consistent from 2 to 3. #27
Comments
Well, that is irritating. Python 3 looks worse and worse... Adam and I confirmed that numpy is reproducible across python 2.7 and 3.5, e.g.
Another bizarre thing with the python system library random: on my laptop, the sequence I get from ipython is one element offset from the sequence I get from vanilla python:
and to continue the bizarreness, I get the python sequence from ipython if I chain the commands together in a single line:
Guidelines:
|
wrong button; reopening until we've confirmed that we are using numpy.random throughout. |
Further weirdness. The fundamental function of the Python 2:
Python 3:
So maybe for |
The |
Does anyone care about this issue? We're weeks away from dropping Python 2 entirely, so it doesn't seem relevant anymore. |
Agreed. Closing this ticket, while reiterating the guidelines:
|
This could impact, e.g. randomize_fibers.py.
Python 2:
Python 3:
It's possible that
numpy.random
is consistent, but I haven't checked yet.The text was updated successfully, but these errors were encountered: