in reply to Select three random numbers between 1..10
Which will remove and return a random element from the array, there by, never picking the same number twice.push @num, splice(@array, int rand @array, 1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Select three random numbers between 1..10
by Limbic~Region (Chancellor) on Mar 16, 2004 at 21:19 UTC | |
|
Re: Re: Select three random numbers between 1..10
by hsinclai (Deacon) on Mar 18, 2004 at 02:46 UTC |