in reply to Select three random numbers between 1..10
my @num; my @array = 1 .. 10; for (1..3) { push @num, splice(@array, rand(@array), 1); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Select three random numbers between 1..10
by Abigail-II (Bishop) on Mar 16, 2004 at 21:23 UTC | |
by iburrell (Chaplain) on Mar 17, 2004 at 03:46 UTC |