dbot/snippets.js
2011-08-22 19:43:16 +01:00

4 lines
99 B
JavaScript

Array.prototype.random = function() {
return this[Math.floor((Math.random()*this.length))];
};