Wednesday, May 11, 2022

Generate random characters withouth gremlins in python.

import os, random, string
length = 13
chars = string.ascii_letters + string.digits + '!@#$%^&*()'
random.seed = (os.urandom(1024))
print(''.join(random.choice(chars) for i in range(length)))