VarRandom/ogoldobina | VarRandom/rt2122 | ||||
---|---|---|---|---|---|
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 (b, e) in cycle((tuple(e) for e in seq)): | t | 5 | for (st, en) in cycle(map(tuple, seq)): |
6 | yield randint(b, e) | 6 | yield randint(st, en) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|