SHARE
TWEET

Untitled

a guest Jun 17th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import random as rd
  2. my_list = []
  3. while len(my_list) < 50:
  4.     p = rd.sample(range(100), 10)
  5.     if p not in my_list: my_list.append(p)
  6.      
  7. my_list = []
  8. while len(my_list) < 50:
  9.     p = rd.sample(range(100), 10)
  10.     for i in range(len(my_list)):
  11.         if set(p) == set(my_list[i]): my_list.append(p)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top