Random List Loop?!
roy at panix.com
Sat Jan 5 16:54:39 CET 2013
In article <ce887da5-1fad-49af-85e3-96ca41b7148c at googlegroups.com>,
Christian Gabriel <gabrieldenmark at gmail.com> wrote:
> I have tried now for ages to make a loop that does the following:
> Makes a new list with 9 random values, from 9 different lists, with 9
> And makes sure that none of the elements repeat!
> Is there anyone that can help, with a very simple solution??
You want random.sample()
More information about the Python-list