Re: Help creating a random string in Perl

2007-06-12 Thread Randal L. Schwartz
> "p46921x" == p46921x <[EMAIL PROTECTED]> writes: p46921x> 1. Only characters in the source string are in the random string p46921x> meaning if Z is not in my source string, it will not be in my random p46921x> string. If A and B are in the source string, then at least one of them p46921x> w

Re: Help creating a random string in Perl

2007-06-12 Thread Chas Owens
On 6/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: snip I can see how to generate a random number between 0 and 6 (meaning I can pick one of the 7 characters in my source string) by using "print int(rand(6))", but I don't know where to being on the second and third and fourth characters to

RE: Help creating a random string in Perl

2007-06-12 Thread Brown, Rodrick
Look at crypt(); $ perldoc -f crypt is a good -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 3:39 PM To: beginners@perl.org Subject: Help creating a random string in Perl Hello, this is perl.beginners and I am really a beginner. This