You can use random.sample
to get a random ordered list of the dict's values, then map them with the keys in their default order. At the difference of using shuffle
you can do this in once
from random import sample
result = dict(zip(values, sample(list(values.values()), len(values))))
Run that 10 times
{'a': 'ACAT', 'b': 'ACCC', 'c': 'ACTG'}
{'a': 'ACTG', 'b': 'ACCC', 'c': 'ACAT'}
{'a': 'ACCC', 'b': 'ACTG', 'c': 'ACAT'}
{'a': 'ACTG', 'b': 'ACAT', 'c': 'ACCC'}
{'a': 'ACAT', 'b': 'ACCC', 'c': 'ACTG'}
{'a': 'ACCC', 'b': 'ACTG', 'c': 'ACAT'}
{'a': 'ACCC', 'b': 'ACTG', 'c': 'ACAT'}