import math while true: let a = random(20) echo a if a == 10: break let b = random(20) echo b