randomChar function ✓ 100.0%
Last updated: 2026-03-03T18:48:07.262Z
Location
Metrics
LOC: 3
Complexity: 1
Params: 1
Coverage: 100.0% (1/1 lines, 142x executed)
Signature
randomChar(charset: string): : string
Source Code
function randomChar(charset: string): string {
return charset[Math.floor(Math.random() * charset.length)];
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| generateFromPattern | calls |