docs: def get_random_word(dictionary, min_word_length=3, max_word_length=8):
      """
          Returns a random word from the dictionary
      """
  
      while True:
          # Choose a random word
          word = choice(dictionary)
          # Stop looping as soon as we have a valid candidate
          if len(word) >= min_word_length and len(word) <= max_word_length:
              break
  
      return word