-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add Fisher-Yates Shuffle Algorithm #281
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
Conversation
Hi, created this PR just to provide an implementation of Fisher-Yates Shuffle on .NET. |
I'm not sure about directory in which I placed this algorithm. I can change it if it's wrong. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, could you put it in the Algorithms/Shufflers directory?
Algorithms.Tests/Sorters/Comparison/FisherYatesShufflerTests.cs
Outdated
Show resolved
Hide resolved
Algorithms.Tests/Sorters/Comparison/FisherYatesShufflerTests.cs
Outdated
Show resolved
Hide resolved
Fixed classes location, added FluentAssertions
Updated Fisher-Yates algorithm, please check) |
Codecov Report
@@ Coverage Diff @@
## master #281 +/- ##
==========================================
+ Coverage 94.97% 95.03% +0.06%
==========================================
Files 158 160 +2
Lines 7581 7678 +97
==========================================
+ Hits 7200 7297 +97
Misses 381 381
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Added Fisher-Yates Shuffle algorithm.
Added tests based on implementation in JavaScript repo.