forked from Space-FuCheng/momoshare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MMSLS.js
39 lines (30 loc) · 1.34 KB
/
MMSLS.js
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
/**
利用随机概率实现多账户运行
填写格式如下:
const MMSLS = [
"https://www.maimemo.com/share/page?uid=32454734&pid=ff6a8b3a651ee2874e97b338d9ef1358&tid=e9417164027beb4e9ae0bf3d49b79ffb",
"https://www.maimemo.com/share/page?uid=32454734&pid=51406dd9e063b581acceb3363d60e3c3&tid=e22a83446318a25969f7f24f913fa60c",
"https://www.maimemo.com/share/page?uid=32454734&pid=ff6a8b3a651ee2874e97b338d9ef1358&tid=e9417164027beb4e9ae0bf3d49b79ffb",
]
=====================以上为范例!=====================
=====================请在下面编辑=====================
=====================请在下面编辑=====================
=====================请在下面编辑=====================
=====================请在下面编辑=====================
=====================请在下面编辑=====================
*/
const MMSLS = [
"https://www.maimemo.com/share/page?uid=23200975&pid=7917ad9be51c636a4b557a4d74c5889b&tid=d245a6d519b39effb8e29ca34b83560b",
]
/**
* 生成随机数字
* @param {number} min 最小值(包含)
* @param {number} max 最大值(不包含)
*/
function randomNumber(min = 0, max = 100) {
return Math.min(Math.floor(min + Math.random() * (max - min)), max);
}
const MMSL_random = MMSLS[randomNumber(0, MMSLS.length)];
module.exports = {
MMSL_random
}