| VarRandom/artnitolog | VarRandom/sevmaxclever | ||||
|---|---|---|---|---|---|
| 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 | seq = [tuple(ab) for ab in seq] | t | 5 | seq = (tuple(i) for i in seq) |
| 6 | for (a, b) in cycle(seq): | 6 | for (a, b) in cycle(seq): | ||
| 7 | yield randint(a, b) | 7 | yield randint(a, b) | ||
| Legends | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||