mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 14:41:23 +08:00
代码优化
This commit is contained in:
@@ -14,4 +14,11 @@ module.exports = {
|
||||
})
|
||||
return obj
|
||||
},
|
||||
getRandom(num) {
|
||||
var random = Math.floor(
|
||||
(Math.random() + Math.floor(Math.random() * 9 + 1)) *
|
||||
Math.pow(10, num - 1),
|
||||
)
|
||||
return random
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user