In Python, what is a good, or the best way to generate some random text to prepend to a file(name) that I\'m saving to a server, just to make sure it does not overwrite. Tha
>>> import random >>> import string >>> alias = ''.join(random.choice(string.ascii_letters) for _ in range(16)) >>> alias 'WrVkPmjeSOgTmCRG'
You could change 'string.ascii_letters' to any string format as you like to generate any other text, for example mobile NO, ID...