Quickstart

Quickstart

Import Strig

import strig

Generating an Alphanumeric String

To generate a simple string composed of letters and numbers, use the alphanumeric() function.

# Generate a random alphanumeric string of default length
random_string = strig.alphanumeric()
print(random_string)  # Example output: 'a3D5k8Zq'
 
# Specify the length of the string
custom_length_string = strig.alphanumeric(12)
print(custom_length_string)  # Example output: 'L8kA9mZ4xQp2'

Explore more methods

Strig provides a lot more than just alphanumeric string generation. Explore the different methods.