Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
170
export
function
randomNumOrStr(): string | number {
171
return
selectRandom([randomNumber, randomString])();
172
}
173
174
export
function
randomNumsAndStrings(): (string | number)[] {
175
return
multipleOf(randomNumOrStr);
Callers
5
units.spec.ts
File · 0.90
makeUnit
Function · 0.90
makeCase
Function · 0.90
environment.spec.ts
File · 0.90
randomMutation
Function · 0.85
Calls
1
selectRandom
Function · 0.85
Tested by
2
makeUnit
Function · 0.72
makeCase
Function · 0.72