Advertisement
here2share

# b_list_random_split.py

Mar 16th, 2019
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. # b_list_random_split.py
  2.  
  3. import random
  4. import msvcrt
  5.  
  6. zzz='BCDFGHJKLMNP'
  7. d = ''
  8.  
  9. while d != 'n' and d!= 'N':
  10.     c = random.sample(zzz, random.randint(2, len(zzz)))
  11.     print ''.join(c)
  12.     print 'Generate Another Random Sequence? (y/n): '
  13.     d = msvcrt.getch()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement