Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import string
- import random
- # Define the characters that can be used in the token (letters and digits)
- characters = string.ascii_letters + string.digits
- # Generate 3 random tokens
- tokens = []
- for i in range(3):
- token = ''.join(random.choice(characters) for j in range(20))
- tokens.append(token)
- # Print the tokens
- print(tokens)
Advertisement
Advertisement