MCPcopy Create free account
hub / github.com/Yantesoft/LinuxdoAssistant / randomInt

Function randomInt

linuxdo-helper.user.js:103–107  ·  view source on GitHub ↗

* 获取随机整数 * @param {number} min - 最小值 * @param {number} max - 最大值 * @returns {number}

(min, max)

Source from the content-addressed store, hash-verified

101 * @returns {number}
102 */
103 function randomInt(min, max) {
104 min = Math.ceil(min);
105 max = Math.floor(max);
106 return Math.floor(Math.random() * (max - min + 1)) + min;
107 }
108
109 /**
110 * 按比例随机波动数值

Callers 3

randomByJitterFunction · 0.85
randomDelayFunction · 0.85
scrollCommentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected