Skip to content
This repository has been archived by the owner on Mar 29, 2018. It is now read-only.

used shuffle() to shuffle in shuffled() #16

Merged
merged 2 commits into from
Jul 5, 2014
Merged

Conversation

natecook1000
Copy link
Contributor

No need to have two different implementations of the Fisher-Yates shuffle -- this changes .shuffled() to call .shuffle() on the unshared copy of self.

No need to have two different implementations of the Fisher-Yates shuffle -- this changes .shuffled() to call .shuffle() on the unshared copy of self.
This adds a method overload for at() that takes an Int[] parameter so that it can be called from other methods without need for a (dangerous?) reinterpretCast call.
@pNre
Copy link
Owner

pNre commented Jul 5, 2014

Definitely, thanks!

pNre added a commit that referenced this pull request Jul 5, 2014
used shuffle() to shuffle in shuffled()
@pNre pNre merged commit f034a1c into pNre:master Jul 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants