Advertisement
gauravssnl

List_random_choice

Sep 28th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. #list_random_choice.py
  2. list =[i for i in range(10)]
  3. print list  
  4. import random
  5. choice=random.choice(list)
  6. print "Random Choice :",choice
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement