Returns a random string of specified length. Can include letters, numbers and/or special characters.
function randomString(
length: number,
includeLetters = true,
includeNumbers = true,
includeSpecialChars = false
): string
// Example:
randomString(10) //=> "N3xO1pDs2f"
randomString(5, true, false) //=> "GjOxa"
randomString(5, false, true) //=> "39281"
randomString(5, true, true, true) //=> "G2a$k!"