What we are doing here is, Copy the list into a temporary list - tempList Create another empty list- lst Select one random word from temporary list Add this word to new list Remove the word from temporary list
Repeat the steps n number of times