How to scramble image pieces?

Hi.
I am making a puzzle game for android and I would like the pieces of the image to be in a random place every time the players plays the level. I made the pieces, they’re on the screen but how should I make them scrambled? Or shall I use empty places and load the images randomly on them? First idea sounds better for me. But I haven’t really found anything about scrambling. A tutorial for jigsaw puzzles would be great too, but enough to answer my question. ^^

Well, giving you the code, would I guess be making your whole game.

What I’d do is create a grid. Create a marker/object at each grid segment/cross. Give each grid object a number, or ID. Store these in an array. Create another array for your image pieces. Then pick randomly from your array of images, and instantiate each image at a random number/ID location capped by your grid.

That’s how I’d go about it anyway, as a test.