randomAlpha
Generates a random alphabetic string.
randomAlpha
Signature
typescript
function randomAlpha(length: number): stringParameters
length- The length of the string to generate
Returns
Random string containing only letters.
Examples
typescript
import { randomAlpha } from 'strio'
randomAlpha(10)
// "aBcDeFgHiJ" (random letters)Related Functions
- random - Random string (any characters)
- randomNumeric - Random digits only
- randomAlphanumeric - Random letters and digits