Shuffle Helper

04/26/08 - 18:00 PST - Posted by Jonathan Garrett, Senior Engine Programmer

Due to some of the problems encountered with those preprocessor shuffle helpers (Read: shuffles.pdf), I cobbled this little exe together. Here's the source: shuff.cpp

Just pass in your shuffle pattern and it will output the byte array and copy it to the Windows clipboard.
Example 1:
			X:\tech\Users\jonny\misc\shuf>shuf A0B0C0D0
			 
			shuf (built Mar 27 2008 18:55:50)
			 
			shuffle (also copied to clipboard):
			  0x00, 0x01, 0x80, 0x80, 0x02, 0x03, 0x80, 0x80, 0x04, 0x05, 0x80, 0x80, 0x06, 0x07, 0x80, 0x80
			


Example 2:
			X:\tech\Users\jonny\misc\shuf>shuf AB00CD00ef0088xx
			 
			shuf (built Mar 27 2008 18:55:50)
			 
			shuffle (also copied to clipboard):
			  0x00, 0x01, 0x80, 0x80, 0x02, 0x03, 0x80, 0x80, 0x14, 0x15, 0x80, 0x80, 0xe0, 0xe0, 0xc0, 0xc0
			

Download the source

[ 0 ]