RosettaCodeData/Task/Loops-Break/Oz/loops-break.oz

9 lines
128 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
for break:Break do
R = {OS.rand} mod 20
in
{Show R}
if R == 10 then {Break}
else {Show {OS.rand} mod 20}
end
end