I want take random key in this dict :
{'F' : 'FF', 'B' : 'F[[-B][+B]]F[+FB]-B','B': 'F[-B]F[-FB]+B',} I have same key this is normal and if the key is 'B' I want one of the two associated values to be returned to me. i.e. if the key is 'B' the result must be'F[[-B][+B]]F[+FB]-B'or'F[-B]F[-FB]+B'randomly and i didn't see how to make that.
'B'key twice. The first value for that key will be lost and you can never return it. Consider to make this dict of lists.B, and the values be a list['F[[-B][+B]]F[+FB]-B', 'F[-B]F[-FB]+B']. To randomly sample a value, query into the key and select one of the values in the list.