I'm trying to make a program that scrambles the order of sentences. The program must take an input file and scramble it into an output file however, when the sentences are scrambled, they should be numbered according to their original order. For example,
I love apples --------> 2. I love candy
I love candy --------> 3. I love God
I love God --------> 1. I love apples
I'm really not sure how to begin, so if you can provide me with ideas or a way to approach this problem or what functions and methods i should be using then that would be very great. Thank you.