Skip to content

Instantly share code, notes, and snippets.

@davydka
Created March 15, 2020 21:39
Show Gist options
  • Save davydka/01498aa95f176447e463106b1018bc2e to your computer and use it in GitHub Desktop.
Save davydka/01498aa95f176447e463106b1018bc2e to your computer and use it in GitHub Desktop.
RANDOM
const random = (min: number, max: number) => {
return Math.floor(Math.random() * (max - min + 1)) + min
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment