Modified getBooleanWithProbability()