KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
How can I randomly select (choose) an item from a list (get a random element)?
Asked 2008-11-20T18:42:21.817
▲
2440
▼
How do I retrieve an item at random from the following list?
foo = ['a', 'b', 'c', 'd', 'e']
python
list
random
Copy Link
Twitter
Facebook
LinkedIn
Share
Edit
Save
Report
Add comment
0 Answers
Your Answer
Post Your Answer