回答編集履歴
1
1
test
CHANGED
@@ -14,25 +14,25 @@
|
|
14
14
|
|
15
15
|
if (p == -1) return [];
|
16
16
|
|
17
|
-
|
17
|
+
const [x1] = data.splice(p,1)
|
18
18
|
|
19
19
|
ret.push(x1);
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
|
23
|
+
const [x2] = data.splice(Math.floor(Math.random() * data.length),1);
|
24
24
|
|
25
25
|
ret.push(x2);
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
|
29
|
+
const [x3] = data.splice(Math.floor(Math.random() * data.length),1);
|
30
30
|
|
31
31
|
ret.push(x3);
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
-
|
35
|
+
const [x4] = data.splice(Math.floor(Math.random() * data.length),1);
|
36
36
|
|
37
37
|
ret.push(x4);
|
38
38
|
|