Function randomString

  • Returns a random string of the specified length.

    Parameters

    • length: number

      Length.

    • dictionary: string = defaultDictionary

      A string containing all the symbols to choose from.

    Returns string