Selecting random elements from a list.

aditya shukla adityashukla1983 at gmail.com
Mon Oct 13 17:29:49 EDT 2008


Hello folks,

i have a list say list1=[a,b,c,...z] ie 26 elements i have to take 5
elements from it randomly and save in another list.Please explain how to do
this?


Aditya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081013/2247ef08/attachment.html>


More information about the Python-list mailing list