XML Photo Gallery... Script Lords?

I’m running through the tutorial on this photo gallery, but I would like to modify the code some. Instead of loading the first picture in the XML array, I’d like to have it randomly load one of the pictures. Below is the code that loads the first movie:

[font=Arial][size=2]function firstImage() {
if (loaded == filesize) {
picture._alpha = 0; picture.loadMovie(image[0], 1);
   }
}[/size][/font]

I don’t know much, but I’m thinking there should be some variant of “math.random” around the “loadMovie(image[0],1);”…

Can anyone help me with this? Pretty please?