Gossamer Forum
Quote Reply
random text and numbers
i was wondering if LinksSQL can generate a 10 character string that has 5 random characters and 5 random numbers in it at random positions like 2dk1kd310f
Quote Reply
Re: [kzap] random text and numbers In reply to
This can be easily done by adding a subroutine:

my @a = (0 .. 9, 'a' .. 'z');
my $password = join '', map { $a[int rand @a] } 0 .. 9;
return $password;



Last edited by:

el noe: Oct 29, 2003, 11:37 AM