Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # sequence_shuffle.py
- n = 10
- iii = 0
- integers = []
- for i in range(-n, n+1):
- integers.append(i)
- integers = integers * 25
- L = len(integers)
- def shuffle():
- element = integers.pop((iii * 3) % L)
- integers.append(element)
- for i in range(5000):
- shuffle()
- print(integers[-1])
- iii += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement