Created
November 17, 2022 18:35
-
-
Save coltpini/83ff620a0186d17c3fdb19ecc3bac12f to your computer and use it in GitHub Desktop.
gist example for confluence
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
const getRandom = (max: number, zero = true) => { | |
const rn = Math.floor(Math.random() * max); | |
return zero ? rn : rn + 1; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment