| VarRandom/FrBrGeorge | VarRandom/aartur | ||||
|---|---|---|---|---|---|
| t | 1 | """ | t | ||
| 2 | """ | ||||
| 3 | import itertools | 1 | import itertools | ||
| 4 | import random | 2 | import random | ||
| 5 | 3 | ||||
| 6 | def randomes(seq): | 4 | def randomes(seq): | ||
| 7 | L = ((a, b) for (a, b) in seq) | 5 | L = ((a, b) for (a, b) in seq) | ||
| 8 | for (a, b) in itertools.cycle(L): | 6 | for (a, b) in itertools.cycle(L): | ||
| 9 | yield random.randint(a, b) | 7 | yield random.randint(a, b) | ||
| Legends | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||