There are various ways. One is as simple as: <!--- All the letters of the alphabet plus the numbers (26 + 10) ---> <cfset radix=36> <!--- Password length ---> <cfset length=8> <cfset pwd=""> <!--- Etc. ---> <cfloop from=1 to=#length# index=i> <cfset pwd = pwd & FormatBaseN(Rand()*radix,radix)> </cfloop>
<cfoutput>#pwd#</cfoutput> HTH Steve > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 06 December 2001 18:30 > To: CF-Talk > Subject: Random passwords > > > Does Anybody know how to generate random passwords for new users? > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists