I am needing help with randomizing the locations of a few pictures...

I have a chess type design board, and I need the program to randomly put 5 pictures in different places on the board, each time the user loads the program... Also, if able, I want the program to decide which pictures to display, and how many of that kind, but always display 5 pictures on the board...

An example on how to do this would be really helpfull!

-Andre