def get_file_paths(file_prefix, num_files):
    """
    Generates the json file paths of the format <file_prefix>idx.json
    where idx is an integer between 0 and num_files-1

    :param file_prefix: The first part of the file path
    that all files to be averaged have in common
    :param num_files: The number of files to be averaged

    :return: A list of files to be averaged
    """
    files = []

    for i in range(num_files):
        files.append(f"{file_prefix}{i}.json")

    return files