CodyKochmann
8/6/2016 - 3:46 PM

generate a random int in CoffeeScript

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);