Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RandomAPI/Randomuser.me-Node
/ randomNat
Method
randomNat
api/1.3/api.js:281–283 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
279
280
// Return random nat to use
281
randomNat() {
282
return
this.nats[range(0, this.nats.length - 1)];
283
}
284
285
// Make sure nat is available
286
validNat(nat) {
Callers
1
generate
Method · 0.95
Calls
1
range
Function · 0.70
Tested by
no test coverage detected