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