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

Articles

GEEK

User's box
Username:
Password:

Forgot password?
New account

Shoutbox
evillierseth
evillierseth
<br><strong> <a href="http:/ /www.replica watchesbus.c om/">replica watches</a>< /strong> <br ><strong><a href="http:/ /www.replica watchesbus.c om/">fake watches</a>< /strong> <br ><strong><a href="http:/ /www.replica watchesbus.c om/">rolex watches</a>< /strong> <br ><
evillierseth
te control receiver which emits some loud signal if the alarm is actually activated and works extremely well inside your place or within a area far from the vacation pool where it might be to possibly be heard.That is crucial intended for effective damage
evillierseth
<title>Moncl er Branson Women Down Vest Belt Decorative Light Blue [moncler2014 288] - $152.00 : moncler, moncler.jers eyspin.org</ title> <meta http-equiv=" Content-Type " content="tex t/html; charset=UTF- 8" /> <meta name="keywor ds" content="Mon cler Branson W
evillierseth

Donate
Donate and help us fund new challenges
Donate!
Due Date: Apr 30
April Goal: $40.00
Gross: $0.00
Net Balance: $0.00
Left to go: $40.00
Contributors


News Feeds
The Register
Google TUGS Nexus
7-INCHER fondleslab
from online shop
Astroboffins mine
data in pursuit of
11 lonely, homeless
RUNAWAY GALAXIES
Yahoo!
Mail!
goes!
titsup!
in!
Blighty!
Business plans,
good ideas, and 8
other myths about
startups ? by
Indiegogo"s CEO
Happy 25 years IN
SPAAACE, Hubble ?
time for you to
come home
Avengers: Age of
Ultron
?
blisteringly big
banter, brawls and
brio
Memory Man,
The Lady from
Zagreb
and
Blood on
Snow
Synths you"ve been
gone: Vintage tech
rules at Musikmesse
2015
Stuff your RFID
card, just let me
through the damn
door!
Fandroids, take
your phone"s
antivirus and burn
it ? Android bod
Slashdot
Debian 8 Jessie
Released
Random Generator
Parodies Vapid
Startup Websites
Think Tanks: How a
Bill [Gates Agenda]
Becomes a Law
Ask Slashdot: What
Are the Most Stable
Smartphones These
Days?
FCC Chairman: a
Former Cable
Lobbyist Who Helped
Kill the Comcast
Merger
Oculus Rift: 2015
Launch Unlikely,
But Not Impossible
Liquid Mercury
Found Under Mexican
Pyramid
Vizio, Destroyer of
Patent Trolls
A Guide To the 5
Cybersecurity Bills
Now Before Congress
Giant Survival Ball
Will Help Explorer
Survive a Year On
an Iceberg
Article viewer

ASP Function to Produce a random IDs



Written by:dimport
Published by:dimport
Published on:2003-06-21 07:19:46
Topic:ASP
Search OSI about ASP.More articles by dimport.
 viewed 8122 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

Response.Write(Cript_String)

%>


This article was originally written by Cadey

Did you like this article? There are hundreds more.

Comments:
<none>
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