in reply to Fisher-Yates shuffle?
I believe that this resolves Abigail-IIs concern.($a=rand $_-1),@values[$_,$a] = @values[$a,$_] for (reverse 1..$#value +s);
Yves / DeMerphq
---
Software Engineering is Programming when you can't. -- E. W. Dijkstra (RIP)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Fisher-Yates shuffle?
by BrowserUk (Patriarch) on Aug 09, 2002 at 17:13 UTC | |
by demerphq (Chancellor) on Aug 09, 2002 at 18:02 UTC | |
by BrowserUk (Patriarch) on Aug 09, 2002 at 22:43 UTC |