Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishal-raj-1/Awesome-JavaScript-Projects
/ getRandomInt
Function
getRandomInt
assets/js/MouseTrails.js:68–70 ·
view source on GitHub ↗
(min, max)
Source
from the content-addressed store, hash-verified
66
67
// random number generation
68
function
getRandomInt(min, max) {
69
return
Math.round(Math.random() * (max - min)) + min;
70
}
71
72
// Ball class
73
class
Ball {
Callers
1
constructor
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected