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