Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (4 sloc) 146 Bytes
import scala.util.Random
class Sometimes(howOften: Double, rand: => Double = Random.nextDouble) {
def shouldI : Boolean = rand < howOften
}