Random Keyframe on mouse click

I’ve searched everywhere and I can’t find the answer.

I’ve got 10 keyframes with a image on each one. When the user clicks the button i’d like it to go to a random keyframe.

I know its simple but I cant figure it out.

Cheers.