Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I was thinking that I'd just use a two dimensional array and for each letter in the alphabet I'd randomly pick one of the scalars in that array, and if it already had a letter assigned, pick another scalar randomly until it found one that wasn't in use. But that seems really hokey. Does anyone have a more coherent idea of how to do this?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Random distribution
by BrowserUk (Patriarch) on Oct 24, 2003 at 19:23 UTC | |
Re: Random distribution
by hardburn (Abbot) on Oct 24, 2003 at 19:10 UTC | |
by ChrisS (Monk) on Oct 24, 2003 at 19:22 UTC | |
by Abigail-II (Bishop) on Oct 24, 2003 at 20:00 UTC | |
by hardburn (Abbot) on Oct 24, 2003 at 20:06 UTC | |
Re: Random distribution
by ChrisS (Monk) on Oct 24, 2003 at 19:13 UTC | |
Re: Random distribution
by KPeter0314 (Deacon) on Oct 24, 2003 at 19:43 UTC | |
Re: Random distribution
by diotalevi (Canon) on Oct 24, 2003 at 19:12 UTC |