Created
June 4, 2017 20:59
-
-
Save jonsamp/9294f8cb11cba3b767b6a52eb57a82ef to your computer and use it in GitHub Desktop.
JavaScript Tips Tab: generateNumber function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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