nextBoolBiased method
Implementation
bool nextBoolBiased(double input, double target) {
if (input >= target) {
return true;
} else {
final difference = (input - target).abs();
final probability = 1 - (difference / target);
return nextDouble() <= probability;
}
}