Load jpgs randomly

I wont to dynmically load jpgs randomly in my FLA. Does anyone know of a script or a tutorial i can use to achieve this. thanks