Hey there, I just spent the day trying to figure this out and finally got it so thought I would share the wealth here. I am not a programmer so forgive if it seems crude, I did what I needed to get it to work.
I needed to show random images from an album on an external page, but found that the random images can end up with duplicates, so my fix:
Hmm mangled my code, one more try:
`