Skip to content

Conversation

infusion
Copy link
Contributor

Hi,

I just improved the prime check and the Fisher Yates shuffle algorithm. Sorry for pulling both in one request. If you want to accept just one, I can split them up.

The implementation of the Richard Durstenfeld algo is also not correct, but maybe you can drop it, as it is just a modified Fisher Yates.

Robert

@mgechev
Copy link
Owner

mgechev commented Aug 14, 2015

Thanks for the PR! Looks great!

Travis CI build has failed, would you take a look at the error here and fix it? As far as I saw, the code doesn't pass the jscs rules.

@infusion
Copy link
Contributor Author

Sorry, fixed indents!

@JakeHP
Copy link
Collaborator

JakeHP commented Aug 15, 2015

Looks good to me. Merging.

JakeHP added a commit that referenced this pull request Aug 15, 2015
Improved prime check and Fisher Yates
@JakeHP JakeHP merged commit b98ea12 into mgechev:master Aug 15, 2015
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.

3 participants