Created
May 11, 2018 07:54
-
-
Save knrt10/d047a855bec38dd7b4649758921747b5 to your computer and use it in GitHub Desktop.
random paragraph when on every connection
This file contains hidden or 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
/** | |
* @function randomNumRetry | |
*/ | |
function randomNumRetry () { | |
randomNumber = Math.floor((Math.random() * paras.length)) | |
quote = paras[randomNumber].para | |
if (quote.length < 100) { | |
quote = paras[randomNumber].para + ' ' + paras[randomNumber - 1].para | |
} | |
return quote | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment