RosettaCodeData/Task/Loops-Break/Pluto/loops-break.pluto

7 lines
124 B
Plaintext

while true do
local r = math.random(0, 19)
print(r)
if r == 10 then break end
print(math.random(0, 19))
end