| VarRandom/dakyun | VarRandom/romantsovmike | ||||
|---|---|---|---|---|---|
| f | 1 | from random import randint | f | 1 | from random import randint |
| 2 | 2 | ||||
| 3 | def randomes(seq): | 3 | def randomes(seq): | ||
| t | 4 | s = [] | t | 4 | new_seq = [] |
| 5 | for elem in seq: | 5 | for el in seq: | ||
| 6 | elem = list(elem) | 6 | el_lst = list(el) | ||
| 7 | s.append(elem) | 7 | new_seq.append(el_lst) | ||
| 8 | yield randint(el_lst[0], el_lst[1]) | ||||
| 9 | while new_seq: | ||||
| 10 | for el in new_seq: | ||||
| 8 | yield randint(elem[0], elem[1]) | 11 | yield randint(el[0], el[1]) | ||
| 9 | while 1: | ||||
| 10 | for bound in s: | ||||
| 11 | yield randint(bound[0], bound[1]) | ||||
| Legends | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||