Skip to content

Instantly share code, notes, and snippets.

@jaalorsa517
Last active May 16, 2023 12:02
Show Gist options
  • Save jaalorsa517/53a86d41845cd94f57826f89c461ca50 to your computer and use it in GitHub Desktop.
Save jaalorsa517/53a86d41845cd94f57826f89c461ca50 to your computer and use it in GitHub Desktop.
Algoritmo para obtener un número aleatoreo, entre un rango suministrado
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