in reply to Re: Re: Choose random element of array?
in thread Choose random element of array?
Cheers,use strict; my $randstring; my @testarray = ( 'a' .. 'z', 'A' .. 'Z', '0' .. '999' ); $randstring .= splice(@testarray, rand @testarray, 1) while @testarray; print "$randstring\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^3: Choose random element of array?
by hsinclai (Deacon) on May 29, 2004 at 03:23 UTC |