randomDigits function ✓ 100.0%
Last updated: 2026-02-24T21:07:57.529Z
Location
Metrics
LOC: 5
Complexity: 1
Params: 1
Coverage: 100.0% (2/2 lines, 3x executed)
Signature
randomDigits(count: number): : string
Summary
Brazilian document generators: RG, CNH, PIS
Source Code
function randomDigits(count: number): string {
return Array.from({ length: count }, () =>
Math.floor(Math.random() * 10),
).join("");
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| generateCnpj | calls |
| generateCpf | calls |
| generatePhone | calls |
| generateRg | calls |