Randomized tiling function, eliminate repeating patterns in your textures!

Bless you! I was just starting to track down why I was getting a D3DCompile error and this resolved it.