Hi Nathan
Just curious myself, how does your version stand up to .NET
Function GUID() As String
GUID = System.GUID.NewGuid().ToString()
End Function
Regards
Maurice
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Nathan Andelin
Sent: 08 September 2008 18:04
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Random String Generator
Last week's discussion on CAPTCHA made me curious about random number
and random string generation because random codes are harder to break
than say a fixed collection of codes or derived images.
So I set about to write a couple RPG procedures that could be used for
random number and random string generation. For example, the following
screen shows a program for generating random strings of 4-8 characters
based on the lower-case English alphabet.
http://www.radile.com/rdweb/temp/random.html
I found that with even a limited alphabet, the procedure can generate
thousands of unique strings of 4-8 characters. It was just interesting;
A curiosity.
I don't have an immediate use for something like this, but I think it
will come in handy sometime in a toolkit.
Nathan.
As an Amazon Associate we earn from qualifying purchases.