my $r1 = 1 + int(rand(10)); my $r2 = 1 + int(rand(10)); $r2 = 1 + int(rand(10)) while $r1 == $r2;
In reply to Re: Generating 2 unique random integers (So I can't pop a list...)
by tilly
in thread Generating 2 unique random integers (So I can't pop a list...)
by uG
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |