Create a Random Password   
 

There are a number of ways to generate useful, random passwords. While these methods will generate variable-length, highly randomized passwords, there is another approach, and quick and dirty approach that requires just a few lines of code!

<%
    For i = 1 To 7 '7 will be the password length
        Randomize
        j = 1 * Rnd
        j = CInt(j)
        If j = 1 Then
            sPassword = sPassword & Chr(CInt((25 * Rnd) + 65))
        Else
            sPassword = sPassword & CInt(9 * Rnd)
        End If
        For j = 1 To 100
            'slow it down so that randomize has time to re-seed
        Next
    Next
%>

The Result: 6E550E2


My3C's
perrychicker
It's easy... it's a PSACAKE!
Back | Tell A Friend | Search this Site
1998 - 2014 psacake.com
Version 3.23

Send me One Million FREE Guaranteed Visitors