CMC (inspired by
this Puzzling post): given a black-box function that returns one of two values (you can choose what they are but it shouldn't matter) with a constant unknown probability
p
where
0 < p < 1
, return one of two values (you can choose what they are) with a 50% chance to be either