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

x/website: Example for math/rand has index offset error #36777

Closed
onggunhao opened this issue Jan 26, 2020 · 2 comments
Closed

x/website: Example for math/rand has index offset error #36777

onggunhao opened this issue Jan 26, 2020 · 2 comments
Milestone

Comments

@onggunhao
Copy link

@onggunhao onggunhao commented Jan 26, 2020

image

@gopherbot gopherbot added this to the Unreleased milestone Jan 26, 2020
@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Jan 26, 2020

Why? rand.Intn(n) is documented as returning a value that is >= 0 and < n.

@onggunhao
Copy link
Author

@onggunhao onggunhao commented Jan 27, 2020

You're right, my mistake. Closing this issue.

@onggunhao onggunhao closed this Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.