[random.js] remove redundancy
This commit is contained in:
parent
d1fd149ef2
commit
392642751f
1 changed files with 1 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue