import random


def guess_by_random(agent, words):
    """A word-selection action that simply chooses a word from the given list
    of words at random, using `random.choice()`.

    Parameters:

        `agent`: An instance of an agent class that derives from `BaseRLAgent`
        `words`: The list of words to choose from
    """
    guess = random.choice(words)
    agent.guesses.append(guess)

    return guess