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

Function getRandomInt

jd_bean_home.js:136–140  ·  view source on GitHub ↗
(min, max)

Source from the content-addressed store, hash-verified

134}
135
136function getRandomInt(min, max) {
137 min = Math.ceil(min);
138 max = Math.floor(max);
139 return Math.floor(Math.random() * (max - min)) + min;
140}
141function doTask2() {
142 return new Promise(resolve => {
143 const body = {"awardFlag": false, "skuId": `${getRandomInt(10000000,20000000)}`, "source": "feeds", "type": '1'};

Callers 1

doTask2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected