kaven-basic - v6.0.0
    Preparing search index...

    Function GenerateRandomString

    • Generates a random string of the specified length using the provided set of valid characters.

      Parameters

      • length: number

        The desired length of the generated string.

      • OptionalvalidCharacters: string

        (Optional) A string containing the set of characters to use for generating the random string. If not provided or if its length is less than 2, a default set of lowercase letters, uppercase letters, and numbers will be used.

      Returns string

      A randomly generated string of the specified length.

      1.0.0

      1.0.5