Faqts : Computers : Programming : Languages : Python : Modules : random

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

34 of 42 people (81%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

How can I choose an element from a list at random?
How can I choose an element from a list at random?

Sep 15th, 2009 02:29
jick heir, Nathan Wallace, unknown unknown, Bruce Wolk


import random
random.choice(list)
http://sundhedernaeringguide.blogspot.com/
http://zdravevyzivypruvodce.blogspot.com/
http://guidasalutenutrizione.blogspot.com/
http://gesundheiternahrungpflege.blogspot.com/
http://soinssantenutrition.blogspot.com/
http://zdravljeprehranavodic.blogspot.com/
http://healthnutritionhoito.blogspot.com/
http://hlhnutgr.blogspot.com/
http://gezondheidvoedinggids.blogspot.com/
http://taplalkozas-egeszsegugyikezikonyv.blogspot.com/
http://hlthnutbg.blogspot.com/