Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
289
function
random(min, max) {
290
if
(max == null) {
291
max = min;
292
min = 0;
293
}
294
return
Math.random() * (max - min) + min;
295
}
Callers
2
setup
Function · 0.70
makeConfetti
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected