Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
Products
:
Gossamer Links
:
Development, Plugins and Globals
:
random text and numbers
Previous Thread
Next Thread
Print Thread
View Threaded
Oct 29, 2003, 10:48 AM
kzap
Novice
(47 posts)
Oct 29, 2003, 10:48 AM
Post #1 of 2
Views: 1581
Shortcut
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
Oct 29, 2003, 11:31 AM
el noe
User
(434 posts)
Oct 29, 2003, 11:31 AM
Post #2 of 2
Views: 1489
Shortcut
Re: [kzap] random text and numbers
In reply to
This can be easily done by adding a subroutine:
Code:
my @a = (0 .. 9, 'a' .. 'z');
my $password = join '', map { $a[int rand @a] } 0 .. 9;
return $password;
Regards
Niko
Last
edited
by:
el noe
: Oct 29, 2003, 11:37 AM
Previous Thread
Next Thread
Print Thread
View Threaded