build
This commit is contained in:
parent
141cc98532
commit
0482d3c102
4 changed files with 8 additions and 7 deletions
|
|
@ -1,7 +1,6 @@
|
|||
const alfabeto = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")
|
||||
|
||||
export const aleatorio = (tamanho?: number) =>
|
||||
Array.from(
|
||||
{ length: tamanho || 8 },
|
||||
() => `ale-${alfabeto[Math.floor(Math.random() * 1000) % alfabeto.length]}`,
|
||||
).join("")
|
||||
`eli-${Array.from({ length: tamanho || 8 })
|
||||
.map(() => alfabeto[((999 * Math.random()) | 0) % alfabeto.length])
|
||||
.join("")}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue