Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RandomAPI/Randomuser.me-Node
/ randomItem
Function
randomItem
api/1.2/api.js:400–402 ·
view source on GitHub ↗
(arr)
Source
from the content-addressed store, hash-verified
398
}
399
400
function
randomItem(arr) {
401
return
arr[range(0, arr.length-1)];
402
}
403
404
function
range (min, max) {
405
return
min + mersenne.rand(max-min+1);
Callers
7
generate
Method · 0.70
randomName
Method · 0.70
genPassword
Method · 0.70
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