Advertisement
Guest User

random choice example

a guest
Oct 7th, 2016
916
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. #-*- coding: utf-8 -*-
  2. import random
  3.  
  4. choices = [u"Hello", u"How are you?", u"Have a nice day"]
  5.  
  6. pick=random.choice(choices)
  7.  
  8. print pick
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement