Skip to content

Instantly share code, notes, and snippets.

@phantom42
Created January 17, 2013 20:10
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/4559281 to your computer and use it in GitHub Desktop.
Save phantom42/4559281 to your computer and use it in GitHub Desktop.
<cfscript>
randssn = '';
seed = timeformat(now(),'hhmmssl');
Randomize(seed);
randssn = randrange(1,9) ; // make it so the first digit is never a 0. in case it is going into a spreadsheet.
for (i = 1; i LTE 8 ; i++){
randssn = randssn & randrange(0,9) ;
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment