Javascript Math random(min, max)
function random(min, max) { return Math.floor(Math.random() * (max - min)) + min; }