Random graphic load - contained in one file?

Is it possible to create a simple script/file where you would have 10 graphics, each graphic containing a number from 1-10, and each time you click on a button/or the graphic it would select and load one of the graphics randomly?

The finished product would need to be in a single file… :beam:

Any ideas anyone?