#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
Marvin quotes
"""

import random

quotes = None

def next_quote():
    """
    Returns the next quote.
    """
    global quotes

    if quotes is None:
        with open('quotes.txt') as f:
            quotes = f.readlines()

    print(random.choice(quotes))
