commit
This commit is contained in:
commit
b5ca2d50ac
337 changed files with 24672 additions and 0 deletions
7
src/aleatorio.ts
Normal file
7
src/aleatorio.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
const alfabeto = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
|
||||
|
||||
export const aleatorio = (tamanho?: number) =>
|
||||
Array.from(
|
||||
{ length: tamanho || 8 },
|
||||
() => `ale-${alfabeto[Math.floor(Math.random() * 1000) % alfabeto.length]}`,
|
||||
).join("");
|
||||
Loading…
Add table
Add a link
Reference in a new issue