MCPcopy Create free account
hub / github.com/Semporia/Scripts / randomNumber

Function randomNumber

jd_joy_help.js:42–44  ·  view source on GitHub ↗
(min = 0, max = 100)

Source from the content-addressed store, hash-verified

40 */
41let newUrl, url = $request.url;
42function randomNumber(min = 0, max = 100) {
43 return Math.min(Math.floor(min + Math.random() * (max - min)), max);
44}
45try {
46 console.log(`url:${url}`);
47 let friendPin = encodeURI(friendsArr[randomNumber(0, friendsArr.length)]) //强制为对方助力,可成为好友关系

Callers 1

jd_joy_help.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected