in reply to Re: Re: Re: Re: Re: Choose random element of array?
in thread Choose random element of array?
was to ensure always getting a random element from @testarray that also was unique (that is, previously unused), through the loop that constructs the final $randstring..$randstring .= splice(@testarray, int rand @testarray, 1)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Choose random element of array?
by Somni (Friar) on May 29, 2004 at 08:52 UTC |