It works:
sub example { do { $av = irand(11) + 10; $bv = irand(11); $cv = irand(2) ? "+" : "-"; } until ( !( $av - $bv < 0 || $av + $bv >= 20 ) ); print $av. $cv . $bv . " = \n"; }
In reply to Re^2: cv = (irand(2))?"+":"-";
by monorels
in thread cv = (irand(2))?"+":"-";
by monorels
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |