Avatar

@deeplyscenery

1 like1 public val
Joined May 27, 2023
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Generates 10 random Pokemon names
export const pokenames = (async () => {
const firstPart = [
"dragon",
"centi",
"zap",
"sizzli",
"frog",
"pumpka",
"pika",
"blast",
"bronz",
"sol",
"scor",
"mel",
"chim",
"char",
"noi",
"licki",
"war",
"klef",
"gre",
];
const secondPart = [
"nite",
"skorch",
"dos",
"pede",
"adier",
"boo",
"chu",
"toise",
"ong",
"rock",
"bunny",
"metal",
"char",
"meleon",
"licky",
"vern",
"tortle",
"nair",
"ki",
"tung",
"ninja",
];
let names = [];
for (let i = 0; i < 10; i++) {
const randomFirstPart = firstPart.sort(() => 0.5 - Math.random())[0];
const randomSecondPart = secondPart.sort(() => 0.5 - Math.random())[0];
names[i] = randomFirstPart + randomSecondPart;
}
return names;
})();
Next