Skip to content

Instantly share code, notes, and snippets.

@Pengeszikra
Created December 22, 2015 18:21
Show Gist options
  • Select an option

  • Save Pengeszikra/68c90de916443d0bea39 to your computer and use it in GitHub Desktop.

Select an option

Save Pengeszikra/68c90de916443d0bea39 to your computer and use it in GitHub Desktop.
DICE ES6 syntax sugar
dice=$=>~~(Math.random()*($?$:6))+1
@Pengeszikra
Copy link
Author

6*Math.random()+1|0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment