Skip to content

Instantly share code, notes, and snippets.

@phantom42
Last active December 11, 2015 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phantom42/4559259 to your computer and use it in GitHub Desktop.
Save phantom42/4559259 to your computer and use it in GitHub Desktop.
<cfscript>
param name='arguments.length' default=10 ;
pool = 'abcdefghjkmnpqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' ;
newTicket = '' ;
for (i=1 ; i lte arguments.length; i=i+1) {
newTicket &= mid(pool, randRange(1, len(pool)),1);
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment