import codecs
import random


def read_file(file_path):
    """
    read file, and return lines
    :param file_path: path of ifle
    :return: lines, a list
    """
    file_object = codecs.open(file_path, mode='r', encoding='utf-8')
    lines = file_object.readlines()
    random.shuffle(lines)
    file_object.close()
    return lines