generate a random int in CoffeeScript
window.rand_int=(low,high)->Math.floor(Math.random() * (Math.floor(high) - Math.ceil(low) + 1)) + Math.ceil(low);