Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # b_list_random_split.py
- import random
- import msvcrt
- zzz='BCDFGHJKLMNP'
- d = ''
- while d != 'n' and d!= 'N':
- c = random.sample(zzz, random.randint(2, len(zzz)))
- print ''.join(c)
- print 'Generate Another Random Sequence? (y/n): '
- d = msvcrt.getch()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement