4 ms·
Generate Secure Random Strings and Integers in PHP
- switch007 11y agoSometimes, 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))