VarRandom/a.pervushina | VarRandom/s02190164 | ||||
---|---|---|---|---|---|
n | n | 1 | import random | ||
1 | import itertools | 2 | import itertools | ||
n | 2 | import itertools | n | ||
3 | import random | ||||
4 | 3 | ||||
5 | def randomes(seq): | 4 | def randomes(seq): | ||
n | 6 | t = [] | n | 5 | lst = [] |
7 | for i in seq: | 6 | for i in seq: | ||
t | 8 | t.append(tuple(i)) | t | 7 | lst.append(tuple(i)) |
9 | for (i, j) in itertools.cycle(t): | 8 | for (i, j) in itertools.cycle(lst): | ||
10 | yield random.randint(i, j) | 9 | yield random.randint(i, j) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|