in reply to Is this a fair shuffle?
The code is probably wrong because I am a noob with perl and programing in general but that is my idea, and I thought this post was extremely interesting at least considering my level of knowledge about perl.my $random = int( rand(20)); foreach $array (@array){ $store = $array; $array = $array[$random]; $array[$random] = $store; $random = int( rand(20)); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is this a fair shuffle?
by Roy Johnson (Monsignor) on Apr 01, 2005 at 20:15 UTC | |
|
Re^2: Is this a fair shuffle?
by Anonymous Monk on Apr 01, 2005 at 19:42 UTC | |
by Thargor (Scribe) on Apr 01, 2005 at 19:55 UTC | |
by fishbot_v2 (Chaplain) on Apr 01, 2005 at 21:59 UTC | |
by Anonymous Monk on Apr 01, 2005 at 19:45 UTC |