docs: def generate_words(numberofwords, wordlist, secure=None):
      """Generate a list of random words from wordlist."""
      if not secure:
          chooser = random.choice
      else:
          chooser = random.SystemRandom().choice
      return [chooser(wordlist) for _ in range(numberofwords)]