Fix bug in offset and remove randListIndex

This commit is contained in:
pyoor 2018-08-27 18:59:17 -04:00
parent ba33374c65
commit a0c59d400c
1 changed files with 1 additions and 5 deletions

View File

@ -80,11 +80,7 @@ class script extends utils {
}
static offset (s) {
return `(${s} % ${random.range(1, 3)})`
}
static randListIndex (objName) {
return `${random.number()} % ${o.pick(objName)}.length`
return `(${random.number()} % ${s})`
}
/**