Functions
Alpha

alpha() function

The alpha() function is used to generate a random string composed entirely of alphabetic characters.

Syntax

Basic

Will return a 6 character long string

strig.alpha() # Example output: 'fBdEIK'

Parameters

ParameterTypeDefaultDescription
lengthint6The length of the generated random string.
prefixstr""A string to add at the beginning of the generated string. This will add to the length of the generated string.
casestrNoneDetermines the letter case. Possible values are "upper" (only uppercase letters), "lower" (only lowercase letters), or None (mix of both uppercase and lowercase).