RosettaCodeData/Task/Loops-Break/Lisaac/loops-break.lisaac
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

21 lines
390 B
Text

Section Header
+ name := TEST_LOOP_BREAK;
Section Public
- main <- (
+ a, b : INTEGER;
`srand(time(NULL))`;
{
a := `rand()`:INTEGER % 20; // not exactly uniformly distributed, but doesn't matter
a.print;
'\n'.print;
a == 10
}.until_do {
b := `rand()`:INTEGER % 20; // not exactly uniformly distributed, but doesn't matter
b.print;
'\n'.print;
}
);