Last active
February 14, 2023 12:50
-
-
Save dcortesnet/a8d432a735190aea8b65274e5316296c to your computer and use it in GitHub Desktop.
Javascript retornar número random
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 randomNumber = (until) => { | |
return Math.floor(Math.random() * until); | |
}; | |
console.log(randomNumber(20)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment