I tried using random.randint(0, 100), but some numbers were the same. Is there a method/module to create a list unique random numbers?
random.randint(0, 100)
Note: The fol
import random sourcelist=[] resultlist=[] for x in range(100): sourcelist.append(x) for y in sourcelist: resultlist.insert(random.randint(0,len(resultlist)),y) print (resultlist)