formatação
This commit is contained in:
parent
e705901982
commit
785588b37e
31 changed files with 178 additions and 167 deletions
|
|
@ -1,7 +1,7 @@
|
|||
const alfabeto = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
|
||||
const alfabeto = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")
|
||||
|
||||
export const aleatorio = (tamanho?: number) =>
|
||||
Array.from(
|
||||
{ length: tamanho || 8 },
|
||||
() => `ale-${alfabeto[Math.floor(Math.random() * 1000) % alfabeto.length]}`,
|
||||
).join("");
|
||||
).join("")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue