Skip to content

Instantly share code, notes, and snippets.

@horitaku1124
Created April 21, 2013 12:10
Show Gist options
  • Save horitaku1124/5429387 to your computer and use it in GitHub Desktop.
Save horitaku1124/5429387 to your computer and use it in GitHub Desktop.
JavaScriptの技
console.log(Math.random() * 10 | 0); // => 0 .. 9 in Integer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment