import random
from bs4 import BeautifulSoup


def get_random_quote(quotes_list):
    """Return a random quote to user."""
    upper_limit = len(quotes_list)-1
    select = random.randint(0, upper_limit)
    selected_quote = quotes_list[select]
    soup = BeautifulSoup(selected_quote, 'html.parser')
    return soup.text