Create a new repeatable block. In the content area paste this code:
Update the content area.
Add a field, name it Image and make the type image.
Upload the images in the item section.
When generating short code, under sort select "Random".
Paste the short-code where you desire the image to go.