princepawn has asked for the wisdom of the Perl Monks concerning the following question:
sub letter { my $offset = int rand 55; my $A = 65; chr($A + $offset); } sub city { my $chars = 10 + int rand 30; my $city; $city .= letter for (1..$chars); $city; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: randomly generating A-Za-z
by pjf (Curate) on Oct 12, 2001 at 06:49 UTC | |
|
Re: randomly generating A-Za-z
by Zaxo (Archbishop) on Oct 12, 2001 at 06:55 UTC | |
|
Re: randomly generating A-Za-z
by dws (Chancellor) on Oct 12, 2001 at 06:32 UTC | |
by virtualsue (Vicar) on Oct 12, 2001 at 13:07 UTC | |
|
Re: randomly generating A-Za-z
by Masem (Monsignor) on Oct 12, 2001 at 07:14 UTC | |
|
Re: randomly generating A-Za-z
by thinker (Parson) on Oct 12, 2001 at 18:02 UTC | |
by belden (Friar) on Oct 13, 2001 at 00:32 UTC | |
|
Re: randomly generating A-Za-z
by George_Sherston (Vicar) on Oct 12, 2001 at 16:47 UTC |