read the filenames into a List, generate a sequence of random numbers, et voila.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
You should be able to defer the code from what I wrote.
It's simple really.
List map = new ArrayList();
// loop through files
while (files.hasNext()) {
map.add(files.next());
}
or something like that.
That's of course not complete code but should serve as a starting point ;)
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
Use a Random object or something:
Random random = new Random(2);
int rotation = random.nextInt()+1;
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20