Skip to content

Instantly share code, notes, and snippets.

Created May 26, 2017 19:51
Embed
What would you like to do?
TryCF Gist
<cfscript>
/* SETUP */
cfhttp(
result="inList"
, method="GET"
, url="https://pastebin.com/raw/eMRSQ4u2"
, getAsBinary = "no"
) ;
c = inList.filecontent.Split(chr(13)&chr(10)) ;
/* GO */
p = {} ;
z=arrayLen(c) ;
for(x=0;x<5;x++){
pw="" ;
r={} ;
while(structCount(r)<4){
n=RandRange(1,z) ;
r.append({"#c[n]#":true}) ;
}
for(w in structKeyList(r)) {
pw&=REReplace(w,"\b(\w)","\u\1","All") ;
}
p.append({"#pw#":57*len(pw)/10});
}
/* DUMP RESULTS */
writeDump(p) ;
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment