This commit is contained in:
Alice Harris 2014-09-01 15:12:01 +10:00 committed by Tyler Renelle
parent d5c8045ecf
commit 3c8ebf96d7

View file

@ -984,7 +984,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)]
###