This commit is contained in:
Tyler Renelle 2014-09-01 12:29:09 -06:00
parent 3c8ebf96d7
commit 6d3aa67192

View file

@ -14480,7 +14480,7 @@ api.wrap = function(user, main) {
randomVal: function(obj, options) {
var array, rand;
array = (options != null ? options.key : void 0) ? _.keys(obj) : _.values(obj);
rand = user.fns.predictableRandom(typeof option !== "undefined" && option !== null ? option.seed : void 0);
rand = user.fns.predictableRandom(options != null ? options.seed : void 0);
return array[Math.floor(rand * array.length)];
},