It's not my algorithm, I pinched it from someone else.

It will always solve the Sudoku as it is a very simple brute force technique. It may however take a very very long time \:\)

I nicked it because I wanted a way to quickly generate a new filled grid to use in a Sudoku puzzle. The funny thing is that the completely random grid generator that I had already coded is actually faster most times