MCPcopy Create free account
hub / github.com/Toulu-debug/enen / randomNumber

Function randomNumber

JS_USER_AGENTS.js:85–87  ·  view source on GitHub ↗

* 生成随机数字 * @param {number} min 最小值(包含) * @param {number} max 最大值(不包含)

(min = 0, max = 100)

Source from the content-addressed store, hash-verified

83 * @param {number} max 最大值(不包含)
84 */
85function randomNumber(min = 0, max = 100) {
86 return Math.min(Math.floor(min + Math.random() * (max - min)), max);
87}
88const USER_AGENT = USER_AGENTS[randomNumber(0, USER_AGENTS.length)];
89
90module.exports = {

Callers 1

JS_USER_AGENTS.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected