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

Incorrect Python version #39

Closed
reidfaiv opened this issue Jan 10, 2017 · 2 comments
Closed

Incorrect Python version #39

reidfaiv opened this issue Jan 10, 2017 · 2 comments

Comments

@reidfaiv
Copy link

Section 1.2 declares Python version 3.5.2 however section 2.1 "vectorized approach" uses random.choices() function which was introduced in Python 3.6.

https://docs.python.org/3.6/library/random.html#random.choices

@rougier
Copy link
Owner

rougier commented Jan 10, 2017

It has been introduced with issue #37. Previous version was steps = random.sample((-1, +1)*n, n)
I'll revert to previous version. According to Python documentation it is equivalent to a shuffle.

@rougier
Copy link
Owner

rougier commented Jan 10, 2017

Done.

@rougier rougier closed this as completed Jan 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants