import random
list1=[3,2,6,1,5,4] target=7
sampled_list=[] listofthis=[]
def pairsum(list1,target):
while True: a=random.choice(list1