while num<>10 num=int(rnd(1)*20) print num if num=10 then exit while print int(rnd(1)*20) wend