Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. class Tumble:
  2. construct(n, seed):
  3. this.conv = [i for i over n]
  4. this.conv.shuffle(seed)
  5. call(k):
  6. return this.conv[k]
  7.  
  8. tumble = Tumble(12, 483721)
  9.  
  10. a = [i for i over 12]
  11. b = [tumble(i) for i in a]
  12. print a, b
  13.  
  14. a = [1,2,3,4,5,6,7,8,9,10,11,12]
  15. b = [12,1,5,3,10,2,11,4,7,8,9,6]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement