Skip to content

Instantly share code, notes, and snippets.

@suissa
Created September 4, 2019 22:00
Show Gist options
  • Save suissa/b265e17014dc60e482611c5681614f40 to your computer and use it in GitHub Desktop.
Save suissa/b265e17014dc60e482611c5681614f40 to your computer and use it in GitHub Desktop.
Gerador de sequência de números aleatórios baseados em um tamanho
const getRandomNumberSequence = ( size = 4 ) =>
Math.floor(
Math.random() * ( Number( `1e${size}` ) )
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment