Yes and no. If you randomly generate numbers, I believe that there is a situation that could lead to the puzzle being unsolvable. The way that I propose creating a puzzle begins with the puzzle being solved and the number (increasing in complexity) of the movements in the reverse order. So you know that the ultimate puzzle is solvable.
Drew McGhie
source share