while true do
a := Random(0, 19);
Print(a);
if a = 10 then
Print("\n");
break;
fi;
Print("\t", a, "\n");
od;
# 11 6
# 5 8
# 1 4
# 5 10
# 1 16
# 10