Load Random Image, please help a noob
in
Programming Questions
•
3 years ago
Hi, sorry to be a massive pain
Loving Processing, but I am a total code noob. I don't really have any experience of programming at all.
I have a folder with 551 images in it, I want to load one of them at random. I know about PImage and random() and void()
Do I need to make a huge array with all of the file names in it? Or is there a way in the Terminal to pull off the file list and paste into Processing? All the files have a name which is between 3 and 5 random digits. Don't mind renaming them all in a batch if that is easier. I'm on a mac, if that wasn't obvious.
This is the first thing that I want to learn how to do. Then I want to creatively 'break' the image. But that is something I will learn on my own, with a little help from the Processing tutorials.
Thanks in advance
2