3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00
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))];
};