4 ms·
Sometimes, programming Python just feels like cheating: from random import SystemRandom import string num = SystemRandom().randint(...) pw = ''.join(Sy
by switch007 11y ago
Sometimes, programming Python just feels like cheating:
from random import SystemRandom
import string
num = SystemRandom().randint(...)
pw = ''.join(SystemRandom().choice(
string.ascii_uppercase + string.digits) for _ in range(26))