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

bug fix RandW #9

Merged
merged 1 commit into from Aug 20, 2020
Merged

Conversation

linhan-cai
Copy link

rand.Intn(sumOfWeights) return the number less than sumOfWeights, if the last item is weight 1, will can't be got by Next method.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 22

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 75.333%

Totals Coverage Status
Change from base Build 21: 0.0%
Covered Lines: 113
Relevant Lines: 150

💛 - Coveralls

@smallnest smallnest merged commit 10873b4 into smallnest:master Aug 20, 2020
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

Successfully merging this pull request may close these issues.

None yet

3 participants