[random.js] remove redundancy

This commit is contained in:
Christoph Diehl 2017-04-23 00:02:26 +03:00
parent d1fd149ef2
commit 392642751f
1 changed files with 1 additions and 2 deletions

View File

@ -122,8 +122,7 @@ var random = {
return this.bool() ? obj : "";
},
shuffle: function (arr) {
let len = arr.length;
let i = len;
let i = arr.length;
while (i--) {
let p = this.number(i + 1);
let t = arr[i];