In article <ce887da5-1fad-49af-85e3-96ca41b71...@googlegroups.com>, Christian Gabriel <gabrieldenm...@gmail.com> wrote:
> Hi > > 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 > elements. > > And makes sure that none of the elements repeat! > > Is there anyone that can help, with a very simple solution?? > > Best > > Christian You want random.sample() http://docs.python.org/2/library/random.html#random.sample -- http://mail.python.org/mailman/listinfo/python-list