MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / random

Function random

assets/js/unsub_page.js:289–295  ·  view source on GitHub ↗
(min, max)

Source from the content-addressed store, hash-verified

287
288
289function random(min, max) {
290 if (max == null) {
291 max = min;
292 min = 0;
293 }
294 return Math.random() * (max - min) + min;
295}

Callers 2

setupFunction · 0.70
makeConfettiFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected