Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GlobalTechInfo/MEGA-MD
/ pickRandom
Function
pickRandom
plugins/math.js:104–106 ·
view source on GitHub ↗
(list)
Source
from the content-addressed store, hash-verified
102
return
Math.floor(Math.random() * (Math.floor(to) - Math.ceil(from) + 1) + Math.ceil(from));
103
}
104
function
pickRandom(list) {
105
return
list[Math.floor(Math.random() * list.length)];
106
}
Callers
1
genMath
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected