summaryrefslogtreecommitdiff
path: root/sort
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2020-07-17 10:01:52 +0100
committerPaul Buetow <paul@buetow.org>2020-07-17 10:01:52 +0100
commitdbd6388393282672859c789b0e1b58d4f8fd0d0b (patch)
tree252fe3f8cac56dc6f2934dc91634679a445ee593 /sort
parente858efc16960b86175d655add938acd3f1edd13e (diff)
refactor
Diffstat (limited to 'sort')
-rw-r--r--sort/shuffle.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/sort/shuffle.go b/sort/shuffle.go
index 9c6f5b9..26db8c4 100644
--- a/sort/shuffle.go
+++ b/sort/shuffle.go
@@ -10,9 +10,6 @@ func Shuffle(a ds.ArrayList) ds.ArrayList {
for i := 0; i < length; i++ {
r := length - rand.Intn(length-i) - 1
- if r == i {
- continue
- }
tmp := a[i]
a[i] = a[r]
a[r] = tmp