Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Tumble:
- construct(n, seed):
- this.conv = [i for i over n]
- this.conv.shuffle(seed)
- call(k):
- return this.conv[k]
- tumble = Tumble(12, 483721)
- a = [i for i over 12]
- b = [tumble(i) for i in a]
- print a, b
- a = [1,2,3,4,5,6,7,8,9,10,11,12]
- b = [12,1,5,3,10,2,11,4,7,8,9,6]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement