Python : Generate random values from the list

November 21, 2009
By

import random _list = ["item_1", "item_2", "item_3"] random_value = random.choice(_list)

Go here to read the rest: 
Python : Generate random values from the list

Tags: , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*