while (true) { def x = random(20) println x break if x == 10 println random(20) }