Skip to content

Instantly share code, notes, and snippets.

@pavelbinar
Created August 25, 2013 11:10
Show Gist options
  • Save pavelbinar/6333277 to your computer and use it in GitHub Desktop.
Save pavelbinar/6333277 to your computer and use it in GitHub Desktop.
JavaScript: random umber
/* Random Number */
var randomNumber = Math.floor(Math.random() * 2);
console.log(randomNumber);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment