modified Dictionary.random_word method to use regex to select random word instead of loop and length()