randomChar function ✓ 100.0%

Last updated: 2026-03-03T18:48:07.262Z

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)

graph LR randomChar["randomChar"] generateFromPattern["generateFromPattern"] generateFromPattern -->|calls| randomChar style randomChar fill:#dbeafe,stroke:#2563eb,stroke-width:2px click randomChar "885075e1d5cfc7c9.html" click generateFromPattern "edf57aaf68187e60.html"
SourceType
generateFromPattern calls