Array.prototype.getRandomWeighted = function(flags={}){ return this[this.getRandomWeightedId(flags)]; }