@unikue/ts-lang-utils
    Preparing search index...

    Function randomStrings

    • Returns a random string array that between the length range, matching the given size

      Parameters

      • Optionalsize: number

        The size of the expected array

      • OptionalminLength: number

        The min length, inclusive

      • OptionalmaxLength: number

        The max length, exclusive

      • characters: string = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'

        The source characters to be generated from

      Returns undefined | string[]

      a random string array that between the length range, matching the given size

      David Hsing

      randomStrings(3, 6, 10);