#NEWLINE# def random_string( length = 20 , alphabet = None ) : #NEWLINE# #INDENT# random . seed ( ) #NEWLINE# ALPHABET = ( alphabet or 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' ) #NEWLINE# r_string = '' #NEWLINE# for i in range ( r_string ) : #NEWLINE# #INDENT# r_string += random . choice ( ALPHABET ) #NEWLINE# #UNINDENT# return r_string