MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / randInt

Function randInt

scripts/letItSnow.js:72–74  ·  view source on GitHub ↗
(min, max)

Source from the content-addressed store, hash-verified

70 }`;
71
72 function randInt(min, max) {
73 return Math.floor(Math.random() * (max - min) + min);
74 }
75
76 function resetSnow(snow) {
77 let size = randInt(5, 50);

Callers 2

resetSnowFunction · 0.85
letItSnow.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected