object O {
def main(args: Array[String]): Unit = {
printRandoms()
}
def printRandoms(): Unit = {
while (true) {
val n = Math.random()
if (n <= 0.2)
return
println(n)
}
}
}
/*
run:
0.444328939417854
0.4372361832775584
0.7086827083588588
0.5621352436367144
*/