I am trying to add proxies randomly from a list to my browsers. I am trying to get each proxy randomly from the list but I keep getting duplicates being used. I have this code for the random proxy but I cannot seem to figure out how to make it not repeat.
random.shuffle(add_proxy)
for numb in range(0, num_tasks):
proxy_addressed = add_proxy[numb]
this now uses only the correct amount of tasks for each proxy, what im stuck wondering is how can i make it do it again? After all the proxies are used, say i am using only 10 proxies but i make 15 'tasks', instead of getting the error list index is out of range, i want to reshuffle it and then assign any remaining tasks a proxy from the new shuffled list.