Skip to content

Instantly share code, notes, and snippets.

@jonsamp
Created June 4, 2017 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonsamp/9294f8cb11cba3b767b6a52eb57a82ef to your computer and use it in GitHub Desktop.
Save jonsamp/9294f8cb11cba3b767b6a52eb57a82ef to your computer and use it in GitHub Desktop.
JavaScript Tips Tab: generateNumber function
// Generate a number
function generateNumber() {
return Math.floor(Math.random() * tipsList.length);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment