in reply to Re: Random but non-repeating array loop
in thread Random but non-repeating array loop
Which will exit the loop when @chars is empty, instead of when splice returns FALSE....while ($ch = splice(@chars, rand(@chars), 1),@chars) { print "$ch"; }
-Blake
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Random but non-repeating array loop - woops
by Anonymous Monk on Jan 19, 2002 at 02:16 UTC | |
by blakem (Monsignor) on Jan 19, 2002 at 03:44 UTC | |
|
Re: Re: Re: Random but non-repeating array loop
by YuckFoo (Abbot) on Jan 19, 2002 at 01:36 UTC |