Created
July 9, 2020 09:23
-
-
Save coldfumonkeh/1a86b5a30599f97b022d60cb8015ccfc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
function airwolfMe( | |
numeric passCount = 1, | |
array hexArray = [] | |
){ | |
var aw = '0123456789ABCDEF'; | |
var hexArray = arguments.hexArray; | |
var hexLine = ''; | |
try{ | |
if( arguments.passCount <= 200 ){ | |
for( var i = 1; i<=10; i++ ){ | |
if( i == 10 ){ | |
arrayAppend( hexArray, hexLine, true ); | |
// Loop back and start again | |
return airwolfMe( arguments.passCount+1, hexArray ); | |
} else { | |
l1 = mid( aw, int( randRange( 1, 16 ) ), 1 ); | |
l2 = mid( aw, int( randRange( 1, 16 ) ), 1 ); | |
hexLine = hexLine & '#l1##l2#' & ': '; | |
} | |
} | |
} | |
} catch( any e ){ | |
dump( e ); | |
abort; | |
} | |
return hexArray; | |
} | |
consoleOutput = airwolfMe(); | |
dump( consoleOutput ); | |
</cfscript> | |
<!--- | |
https://www.popularmechanics.com/technology/apps/a26473/air-wolf-code-debugging/ | |
---> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment