randomDigits function ✓ 100.0%

Last updated: 2026-02-24T21:07:57.500Z

Metrics

LOC: 3 Complexity: 1 Params: 1 Coverage: 100.0% (1/1 lines, 55x executed)

Signature

randomDigits(count: number): : number[]

Summary

Valid CNPJ generator with proper check digits

Source Code

function randomDigits(count: number): number[] {
  return Array.from({ length: count }, () => Math.floor(Math.random() * 10));
}

No outgoing dependencies.

No incoming dependencies.