UNPKG

@xaroth8088/random-names

Version:

A random name generator for all kinds of things

22 lines (21 loc) 667 B
export default function anoukis() { let rnd; let rnd2; let rnd3; let rnd4; let names; const nm1 = ['', '', '', '', 'b', 'd', 'f', 'g', 'h', 'k', 'l', 'm', 'n', 'p', 'r', 's', 't', 'w', 'y', 'z']; const nm2 = ['a', 'u', 'o', 'e']; const nm3 = ['u', 'o', 'u', 'o', 'u', 'o', 'oo']; { rnd = Math.floor(Math.random() * nm1.length); rnd2 = Math.floor(Math.random() * nm2.length); rnd3 = Math.floor(Math.random() * nm3.length); rnd4 = Math.floor(Math.random() * nm1.length); while (rnd4 < 4) { rnd4 = Math.floor(Math.random() * nm1.length); } names = nm1[rnd] + nm2[rnd2] + nm1[rnd4] + nm3[rnd3]; return names; } }