MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / randomWords

Function randomWords

apps/webapp/app/utils/randomWords.ts:5–20  ·  view source on GitHub ↗
({ exactly, join }: { exactly: number; join: string })

Source from the content-addressed store, hash-verified

3}
4
5function randomWords({ exactly, join }: { exactly: number; join: string }): string {
6 const words: string[] = [];
7
8 for (let i = 0; i < exactly; i++) {
9 let nextWord = randomWord();
10
11 // Make sure the word is not already in the list
12 while (words.includes(nextWord)) {
13 nextWord = randomWord();
14 }
15
16 words.push(nextWord);
17 }
18
19 return words.join(join);
20}
21
22var wordList = [
23 // Borrowed from xkcd password generator which borrowed it from wherever

Callers 1

generateTwoRandomWordsFunction · 0.85

Calls 1

randomWordFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…