Advertisement
here2share

# list_random_loop.py

May 6th, 2015
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. # list_random_loop.py
  2.  
  3. import random
  4.  
  5. vals = 'abcde123456789'
  6. for loop in range(400):
  7.     print(random.choice(vals)),
  8.  
  9. print
  10. print
  11.  
  12. vals = ['01', '02', '03', '04', '05', 12, 24, 48, 'aa', 'bb', 'cc']
  13. for loop in range(100):
  14.     print(random.choice(vals)), '\t',
  15.  
  16. print
  17. print
  18.  
  19. print ''.join(random.choice('abcde123456789') for _ in range(79))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement