Completed randomization function and retrieval of words from the dictionary.