Fix bug in offset and remove randListIndex
This commit is contained in:
parent
ba33374c65
commit
a0c59d400c
1 changed files with 1 additions and 5 deletions
|
@ -80,11 +80,7 @@ class script extends utils {
|
||||||
}
|
}
|
||||||
|
|
||||||
static offset (s) {
|
static offset (s) {
|
||||||
return `(${s} % ${random.range(1, 3)})`
|
return `(${random.number()} % ${s})`
|
||||||
}
|
|
||||||
|
|
||||||
static randListIndex (objName) {
|
|
||||||
return `${random.number()} % ${o.pick(objName)}.length`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue