(val: str)
| 30 | |
| 31 | |
| 32 | def _scramble(val: str) -> str: |
| 33 | words = val.split(' ') |
| 34 | shuffled = copy.deepcopy(words) |
| 35 | while True: |
| 36 | random.shuffle(shuffled) |
| 37 | if shuffled != words: |
| 38 | break |
| 39 | return ' '.join(shuffled) |
| 40 | |
| 41 | |
| 42 | class Scrambler(lit_components.Generator): |