Skip to content
Permalink
Browse files

Fix shuffle

  • Loading branch information
pakastin committed May 31, 2019
1 parent 06ad501 commit 80d398fce3baa42b9ef584f0c4a80a0820f14669
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/fisherYates.js
@@ -3,7 +3,7 @@ export default function (array) {
var rnd, temp

for (var i = array.length - 1; i; i--) {
rnd = Math.random() * i | 0
rnd = Math.round(Math.random() * i)
temp = array[i]
array[i] = array[rnd]
array[rnd] = temp

0 comments on commit 80d398f

Please sign in to comment.
You can’t perform that action at this time.