a=[]
from random import randint as rd
for i in range(42):
a.append(rd(1,42))
j=0
k=len(a)-1
while(j<=k):
while(a[i]==a[j]):
a[i]=rd(1,42)
j=0
j=j+1
I cannot figure out how to generate entirely unique random lists in python. All the members have to be unique and cannot by any means be the same as any other member of the list