build
This commit is contained in:
parent
141cc98532
commit
0482d3c102
4 changed files with 8 additions and 7 deletions
4
dist/aleatorio.js
vendored
4
dist/aleatorio.js
vendored
|
|
@ -2,6 +2,8 @@
|
|||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.aleatorio = void 0;
|
||||
const alfabeto = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
|
||||
const aleatorio = (tamanho) => Array.from({ length: tamanho || 8 }, () => `ale-${alfabeto[Math.floor(Math.random() * 1000) % alfabeto.length]}`).join("");
|
||||
const aleatorio = (tamanho) => `eli-${Array.from({ length: tamanho || 8 })
|
||||
.map(() => alfabeto[((999 * Math.random()) | 0) % alfabeto.length])
|
||||
.join("")}`;
|
||||
exports.aleatorio = aleatorio;
|
||||
//# sourceMappingURL=aleatorio.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue