MCPcopy Create free account
hub / github.com/Toulu-debug/enen / getRandomNumberByRange

Function getRandomNumberByRange

TS_USER_AGENTS.ts:46–49  ·  view source on GitHub ↗
(start: number, end: number)

Source from the content-addressed store, hash-verified

44]
45
46function getRandomNumberByRange(start: number, end: number) {
47 end <= start && (end = start + 100)
48 return Math.floor(Math.random() * (end - start) + start)
49}
50
51let USER_AGENT = USER_AGENTS_ARR[getRandomNumberByRange(0, USER_AGENTS_ARR.length)]
52

Callers 6

TS_USER_AGENTS.tsFile · 0.85
getshareCodeHWFunction · 0.85
getShareCodePoolFunction · 0.85
getDeviceFunction · 0.85
getVersionFunction · 0.85
jdpingouFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected