MCPcopy Create free account
hub / github.com/anyehttp/quantumult-x / randomInt

Function randomInt

task/v2ex.js:311–313  ·  view source on GitHub ↗

* 随机整数生成

(min, max)

Source from the content-addressed store, hash-verified

309 * 随机整数生成
310 */
311function randomInt(min, max) {
312 return Math.round(Math.random() * (max - min) + min);
313}
314// 发送消息
315async function SendMsg(message) {
316 if (!message) return;

Callers 1

getRandomTimeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected