Set a random condition.