Skip to content

Instantly share code, notes, and snippets.

@catharyna-angela
Created July 14, 2022 14:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save catharyna-angela/d2740e0ef64a0e29354bc2244ac1423d to your computer and use it in GitHub Desktop.
Save catharyna-angela/d2740e0ef64a0e29354bc2244ac1423d to your computer and use it in GitHub Desktop.
número inteiro aleatório em javascript
let num = parseInt(Math.random() * 10) //to tens *10, to hundreds *100, to thousands *1000...
console.log(num);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment