• Generates a random string of a given length and alphabet.

    Parameters

    • Optional length: number

      The length of the random string (default: 20 characters).

    • Optional alphabet: string

      The alphabet to use for generating the random string (default: alphanumeric).

    Returns string

    The randomly generated string.

Generated using TypeDoc