VarRandom/rt2122 | VarRandom/ogoldobina | ||||
---|---|---|---|---|---|
f | 1 | from random import randint | f | 1 | from random import randint |
2 | from itertools import cycle | 2 | from itertools import cycle | ||
3 | 3 | ||||
4 | def randomes(seq): | 4 | def randomes(seq): | ||
t | 5 | for (st, en) in cycle(map(tuple, seq)): | t | 5 | for (b, e) in cycle((tuple(e) for e in seq)): |
6 | yield randint(st, en) | 6 | yield randint(b, e) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|