This commit is contained in:
Luiz Silva 2024-05-07 10:17:51 -03:00
parent f30428ce4d
commit 1968877db8
63 changed files with 6 additions and 12 deletions

2
dist-import/aleatorio.js Normal file
View file

@ -0,0 +1,2 @@
const alfabeto = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
export const aleatorio = (tamanho) => Array.from({ length: tamanho || 8 }, () => `ale-${alfabeto[Math.floor(Math.random() * 1000) % alfabeto.length]}`).join("");