Last active
May 16, 2023 12:02
-
-
Save jaalorsa517/53a86d41845cd94f57826f89c461ca50 to your computer and use it in GitHub Desktop.
Algoritmo para obtener un número aleatoreo, entre un rango suministrado
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
const randomMinMax = (min = 0, max = 1) => 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