diff --git a/lib/utils/objects.js b/lib/utils/objects.js index 1ee0d71..8828baa 100644 --- a/lib/utils/objects.js +++ b/lib/utils/objects.js @@ -30,7 +30,7 @@ Objects.prototype.get = function (category, last) { if (last) { return this.container[category].slice(-1)[0] } - return random.index(this.container[category]) + return random.pick(this.container[category]) } Objects.prototype.pick = function (category, last) {