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

could use swift random (swift 4.2) #5

Open
ctholho opened this issue Jun 9, 2019 · 1 comment
Open

could use swift random (swift 4.2) #5

ctholho opened this issue Jun 9, 2019 · 1 comment

Comments

@ctholho
Copy link

ctholho commented Jun 9, 2019

Line 145 and line 155 could be updated to use Float.random(in: 0 ... 1)

@davecom
Copy link
Owner

davecom commented Jun 9, 2019

Yup, but the book was written before Swift 4.2, and we don't want the code here to get out of sync with the print edition.

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