[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 : "";
|
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];
|
||||||
|
|
Loading…
Reference in a new issue