Checks if the probability value is valid
bool isValidProbability(double probability) { return probability >= 0.0 && probability <= 100.0; }