How to use python readlines method in random order
Question: How can one use the `readlines()` method to read a file in a random shuffled
manner i.e. `random.shuffle()`

    
    
    file = open(filename)
    data = file.readlines()           
    file_length =  len(data)
    


Answer: Get them into a list with `lines = file.readlines()`, and then
`random.shuffle(lines)` that list (import `random` module).

