<!--- length of random string --->
        <cfset strLen = 8>
        <cfset str = "">

        <!--- for upper case characters
        <cfset startChr = 65>
        <cfset endChr = 90> --->

        <!--- for lower case characters --->
        <cfset startChr = 97>
        <cfset endChr = 122>

        <cfloop from="1" to="#strLen#" index="i">
                <cfset str = str & chr(randrange(startChr,endChr))>
        </cfloop>
        <cfoutput>#str#</cfoutput>

Cheers

Mark


______________ 
Mark Stanton 
Web Production 
Gruden Pty Ltd 
Tel: 9956 6388
Mob: 0410 458 201 
Fax: 9956 8433 
www.gruden.com
 


---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to