Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RandomAPI/Randomuser.me-Node
/ randomItem
Function
randomItem
api/1.4/api.js:438–440 ·
view source on GitHub ↗
(arr)
Source
from the content-addressed store, hash-verified
436
}
437
438
function
randomItem(arr) {
439
return
arr[range(0, arr.length-1)];
440
}
441
442
function
range(min, max) {
443
return
min + mersenne.rand(max-min+1);
Callers
11
generate
Method · 0.70
randomName
Method · 0.70
genPassword
Method · 0.70
genSVNR
Function · 0.50
inject.js
File · 0.50
inject.js
File · 0.50
inject.js
File · 0.50
inject.js
File · 0.50
inject.js
File · 0.50
inject.js
File · 0.50
inject.js
File · 0.50
Calls
1
range
Function · 0.70
Tested by
no test coverage detected