import os
import random
import shutil
pathA ='e:/Work/tasks/'
pathB = 'e:/Shared_WR/'
folders = []
all_files = os.listdir(pathA)
for item in all_files:
if (os.path.isdir(item)):
folders.append(item)
print (folders)
int_random = random.randint(0, len(folders))
print (int_random)
shutil.copytree(folders[int_random], pathB+folders[int_random])