Home > AI > Language > Python >

(interview) Stream Shuffling

## Stream Shuffling

Using only `random`, implement the Fisher Yates shuffling algorithm that can work on an input stream.

```py
import random

input_stream = range(0, 100)
output_list = []

for (i, v) in enumerate(input_stream):
    pass
```

Leave a Reply