• Returns a uniform random string of the given length with characters from the given charset.

    Charset must not have more than 256 characters.

    Default charset generates case-sensitive alphanumeric strings (0-9, A-Z, a-z).

    Parameters

    • length: number
    • charset: string = ALPHANUMERIC
    • prng: RandomSource = defaultRandomSource

    Returns string