[random.js] remove redundancy

This commit is contained in:
Christoph Diehl 2017-04-23 00:02:26 +03:00
parent d1fd149ef2
commit 392642751f

View file

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