sqlrooms.github.io/api/utils/functions/genRandomStr.md at main · sqlrooms/sqlrooms.github.io · GitHub
Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 559 Bytes

File metadata and controls

28 lines (18 loc) · 559 Bytes
url https://sqlrooms.org/api/utils/functions/genRandomStr.md

@sqlrooms/utils / genRandomStr

Function: genRandomStr()

genRandomStr(length): string

Generates a random string of specified length

Parameters

Parameter Type Description
length number The length of the random string to generate

Returns

string

Random string containing uppercase letters, lowercase letters, and numbers

Example

const random = genRandomStr(10); // e.g., "aB3kF9mN2x"