pick random image from 2 image folders
in OpenSesame
I am creating an experiment, where i need to pick randomly from 2 folders, containing different image set. I want to create form using inline script to display one image and and 2 bottoms.
How can i randomly pick images coming from 2 folders, without having to rename each image and putting them into the file pool?
Comments
Hi,
Get the content of a folder as a list:
(source: https://stackoverflow.com/questions/3207219/how-do-i-list-all-files-of-a-directory)
then randomly select a file from that list:
Hope this helps,
Eduard