select random images in folder without duplicates

loot001's icon

i have a folder of a bunch of images.
i have a good patch that is playing all the images in order:

but I want to show them all randomly without duplicates.

the object Urn seems to be a good object to select numbers. can i translate this to select images in a folder??
other ideas?
thanks!

1035.slideshow1.maxpat
Max Patch
Chris Muir's icon

I didn't look at your patch but yeah, urn is probably what you want to use. I might populate a menu (which doesn't have to be shown), with the items in the folder, get the count of how many items there are, and set urn's max with that. Then each new number out of urn selects a new name from the menu. Folder/coll could be used too.

Christopher Dobrian's icon

Chris is right. See Example X on this page (which works for either movies or still images).
http://music.arts.uci.edu/dobrian/IAP2004/JitterExamples.htm