Datoteca — API Reference
    Preparing search index...

    Function generarRut

    • Genera un RUT de persona natural (rango 1.000.000-25.000.000).

      Generates a natural-person RUT (range 1,000,000-25,000,000).

      Parameters

      • rng: Rng

        Generador de números aleatorios determinístico. / Deterministic random number generator.

      • options: RutOptions = {}

        Formato de salida y si incluir el dígito verificador. / Output format and whether to include the check digit.

      Returns string

      El RUT generado como string, en el formato pedido. / The generated RUT as a string, in the requested format.