import random


def shuffle_fields(fields):
    """
    Shuffle all fields in a dict together. Each field should be a list.
    """
    keys, values = zip(*fields.items())
    zipped = list(zip(*values))
    random.shuffle(zipped)
    unzipped = list(zip(*zipped))
    for k, v in zip(keys, unzipped):
        fields[k] = list(v)
    return fields