Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random as rd
- my_list = []
- while len(my_list) < 50:
- p = rd.sample(range(100), 10)
- if p not in my_list: my_list.append(p)
- my_list = []
- while len(my_list) < 50:
- p = rd.sample(range(100), 10)
- for i in range(len(my_list)):
- if set(p) == set(my_list[i]): my_list.append(p)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement