def select_random(conn):
    """
    Obtains a random fortune.
    :param conn: A handle to the database connection.
    :return: The text of the fortune.
    """
    conn[1].execute("SELECT data FROM fortunes ORDER BY RANDOM() LIMIT 1")
    return conn[1].fetchall()[0][0]