MCPcopy Create free account
hub / github.com/activejs/activejs / randomNumOrStr

Function randomNumOrStr

packages/core/src/tests/utils.ts:170–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168}
169
170export function randomNumOrStr(): string | number {
171 return selectRandom([randomNumber, randomString])();
172}
173
174export function randomNumsAndStrings(): (string | number)[] {
175 return multipleOf(randomNumOrStr);

Callers 5

units.spec.tsFile · 0.90
makeUnitFunction · 0.90
makeCaseFunction · 0.90
randomMutationFunction · 0.85

Calls 1

selectRandomFunction · 0.85

Tested by 2

makeUnitFunction · 0.72
makeCaseFunction · 0.72