forked from Space-FuCheng/momoshare
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMMSLS.js
More file actions
37 lines (28 loc) · 1.08 KB
/
MMSLS.js
File metadata and controls
37 lines (28 loc) · 1.08 KB
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
/**
利用随机概率实现多账户运行
填写格式如下:
const MMSLS = [
"https://www.maimemo.com/share/page?uid=15567869&pid=0517da4ff29a79acb5da1c587380e9b4&tid=ca3e6569ef02b7c0bba3f709710b4cfe"
]
=====================以上为范例!=====================
=====================请在下面编辑=====================
=====================请在下面编辑=====================
=====================请在下面编辑=====================
=====================请在下面编辑=====================
=====================请在下面编辑=====================
*/
const MMSLS = [
"https://www.maimemo.com/share/page?uid=15567869&pid=8857acd4681c74ca221e995152d7e1de&tid=b09a047c1552caded144e75e029c62ca"
]
/**
* 生成随机数字
* @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
}