check static method
Implementation
static void check(num probability) {
if (probability < 0 || 1 < probability) {
throw InvalidProbability(probability);
}
}
static void check(num probability) {
if (probability < 0 || 1 < probability) {
throw InvalidProbability(probability);
}
}