MCPcopy Create free account
hub / github.com/bxcodec/github-readme-medium-recent-article / getRandomUserAgent

Function getRandomUserAgent

app/util/useragent.ts:42–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40];
41
42export function getRandomUserAgent() {
43 const randomIndex = Math.floor(Math.random() * userAgents.length);
44 return userAgents[randomIndex];
45}

Callers 2

feedToJSONFunction · 0.90
getArticleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected