Skip to content

Instantly share code, notes, and snippets.

@heyalexej
Created March 5, 2013 03:24
Show Gist options
  • Save heyalexej/5087747 to your computer and use it in GitHub Desktop.
Save heyalexej/5087747 to your computer and use it in GitHub Desktop.
rand = (max =10, min = 0) ->
Math.floor(Math.random() * (max - min + 1)) + min
console.log rand()
console.log rand 100
console.log 50, 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment