Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import random
- def generador():
- lista0 = ["p", "g", "q"]
- lista1 = ["a", "o", "e"]
- lista2 = ["m", "h", "c"]
- d0 = random.randint(1, 9)
- d1 = random.choice(lista0)
- d2 = random.randint(10, 100)
- d3 = random.choice(lista1)
- d4 = random.choice(lista2)
- return '{0}{1}{2}{3}{4}'.format(d0, d1, d2, d3, d4)
- def main():
- key = generador()
- print('Key: {0}'.format(key))
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment