Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Random Pokémon number, spits out a random National Dex number.
- # Written by ProjectTitan313. Febuary 8, 2013.
- import random
- Continue = 'yes'
- DexNumber = 0
- TryAgain = 'no'
- while Continue == 'yes':
- DexNumber = random.randint(1, 649)
- print ("Enter anything to generate a new number. Enter Q to exit program")
- TryAgain = input().lower()
- TryAgain = str(TryAgain)
- if TryAgain != 'q':
- Continue = 'yes'
- print (int(DexNumber))
- elif TryAgain == 'q':
- Continue = 'no'
- break
Advertisement
Add Comment
Please, Sign In to add comment