VarRandom/s9160605122 | VarRandom/Viliana | ||||
---|---|---|---|---|---|
n | n | 1 | from random import randint | ||
1 | from itertools import cycle | 2 | from itertools import cycle | ||
n | 2 | import random | n | ||
3 | 3 | ||||
t | 4 | def randomes(seq): | t | 4 | def randomes(args): |
5 | l = [tuple(t) for t in seq] | 5 | args = [tuple(arg) for arg in args] | ||
6 | for p in cycle(l): | 6 | for tup in cycle(args): | ||
7 | yield random.randint(*p) | 7 | yield randint(*tup) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|