27752 total geeks with 3539 solutions
Recent challengers:
 Welcome, you are an anonymous user! [register] [login] Get a yourname@osix.net email address 



User's box

Forgot password?
New account

[b][url=http ://www.snkbs .com/charmss terling-silv er-c-15.html ]Sterling Silver Earring store[/url][ /b] [b]<a href="http:/ /www.snkbs.c om/clipsster ling-silver- 14k-gold-c-1 1.html">Clip s-Sterling Silver & 14k Gold online</a>[/ b] cle we'll look at the marketin
[b][url=http ://www.ipier ian.org/]hig h quali<strong ><a href="http:/ /www.ipieria n.org/">high quality replica watches</a>< /strong> <br > <strong><a href="http:/ /www.ipieria n.org/">fake watches</a>< /strong> <br >
[b][url=http ://www.tiffa nystore.top/ ]tiffany pendants[/ur l][/b] [b][url=http ://www.tiffa nystore.top/ ]tiffany designer[/ur l][/b] f problems at a later point.This collection of tips goes over pond design, some ways to copy aspect, pump selection as well a
[b]<a href="http:/ /www.cheapli nksoflondon. top/">links of lon<strong>< a href="http:/ /www.cheapli nksoflondon. top/">links of london sweetie bracelet</a> </strong> <b r> <strong><a href="http:/ /www.cheapli nksoflondon. top/">links of london friendship bracelet</a
[b][url=http ://www.breit lingreplicaw atches.com/e s/breitling- aeroespacial -c-3.html]re lojes Breitling aeroespacial es[/url][/b] <br><strong> <a href="http:/ /www.breitli ngreplicawat ches.com/es/ breitling-ae roespacial-c -3.html">rel ojes Breitling aeroespacial es</a

Donate and help us fund new challenges
Due Date: Dec 31
December Goal: $40.00
Gross: $0.00
Net Balance: $0.00
Left to go: $40.00

News Feeds
The Register
IETF standards is
"band-aids on top
of band-aids" says
SDN veteran
HPE: you with the
horn, be silent, we
are composing
British woman loses
1.6 million to
romance scam love
Blighty competition
watchdog pokes
pointy finger into
cloud storage
Can"t get a break:
Pwned Linux
ransomware pwned
again, infects 3000
Microsoft wants to
be your phone
company, at least
for voice
If a picture tells
a 1000 words about
latency, Google
won"t load it
Team America, world
police, take down
37,479 counterfeit
Automated essay
marking on par with
human teachers
Node.js sysadmins,
get ready to patch
Sued For Using
HTTPS: Companies In
Crypto Patent Fight
The Hidden Costs of
Going Freelance
Sony Unlocks
PlayStation 4"s
Previously Reserved
Seventh CPU Core
For Devs
HTTP/2.0 Opens
Every New
Connection It Makes
With the Word
Russian Moon
Landing May Take As
Many As Six
US Marshals Jump
Into "Cyber Monday"
AT&T Will Raise
Cost of Old
Unlimited Data
Plans By $5 In
VTech Hack Gets
Worse: Chat Logs,
Kids" Photos Taken
In Breach
Researchers Create
Sodium Battery In
Industry Standard
"18650" Format
Swallow the Doctor:
The Present and
Future of Robots
Inside Us
Article viewer

ASP Function to Produce a random IDs

Written by:dimport
Published by:dimport
Published on:2003-06-21 07:19:46
Search OSI about ASP.More articles by dimport.
 viewed 8409 times send this article printer friendly

Digg this!
    Rate this article :
This nice little function will return a nice little random string which I use to create ID's for ALL my projects, in any language (just got to edit it). In all the time I have used this sub it has NEVER created the same string twice, and if your not happy with it, just call it twice and then it will half the chances again :D

'============= CODE ============

Function Cript()

    Dim strLetters, g, i

    strLetters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
    Randomize Timer
        i = Int(Rnd * 62) + 1
        g = Mid(strLetters, i, 1)
    Cript = Int(Rnd * 999999) + 1 & g

End Function

'============= END ============

How To Use IT :
<% @LANGUAGE=VBScript %>
<% Option Explicit %>
<!-- #Include file="Functions.asp" -->
Dim Cript_String

Cript_String = Cript



This article was originally written by Cadey

Did you like this article? There are hundreds more.

Anonymously add a comment: (or register here)
(registration is really fast and we send you no spam)
BB Code is enabled.
Captcha Number:

Your Ad Here
Copyright Open Source Institute, 2006