by rockostrich · 9y ago · 0 comments
case class Probability(value: Double) { require(value <= 0 && value >= 1, "probability must be between 0 and 1" }