in reply to Re: Generating 2 unique random integers (So I can't pop a list...)
in thread Generating 2 unique random integers (So I can't pop a list...)

I think you mean:
my @numbers = (1..10); my $r1 = splice @numbers, rand(@numbers), 1; my $r2 = splice @numbers, rand(@numbers), 1;
@a was confusing me...

Mike
  • Comment on Re^2: Generating 2 unique random integers (So I can't pop a list...)
  • Download Code