diff --git a/script/index.coffee b/script/index.coffee index dd8a8203b7..a49d4cd8e9 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -990,7 +990,7 @@ api.wrap = (user, main=true) -> ### randomVal: (obj, options) -> array = if options?.key then _.keys(obj) else _.values(obj) - rand = user.fns.predictableRandom(option?.seed) + rand = user.fns.predictableRandom(options?.seed) array[Math.floor(rand * array.length)] ###